[0m


SETUID(3)	    UNIX Programmer's Manual		SETUID(3)



[1mNAME
     [0msetuid, seteuid, setruid, setgid, setegid, setrgid - set
     user and group ID

[1mSYNOPSIS
     #include <sys/types.h>

     setuid(uid)
     seteuid(euid)
     setruid(ruid)
     uid_t uid, euid, ruid;

     setgid(gid)
     setegid(egid)
     setrgid(rgid)
     gid_t gid, egid, rgid;

DESCRIPTION
     [0m_S_e_t_u_i_d (_s_e_t_g_i_d) sets both the real and effective user ID
     (group ID) of the current process to as specified.

     _S_e_t_e_u_i_d (_s_e_t_e_g_i_d) sets the effective user ID (group ID) of
     the current process.

     _S_e_t_r_u_i_d (_s_e_t_r_g_i_d) sets the real user ID (group ID) of the
     current process.

     These calls are only permitted to the super-user or if the
     argument is the real or effective ID.

[1mSEE ALSO
     [0msetreuid(2), setregid(2), getuid(2), getgid(2)

[1mDIAGNOSTICS
     [0mZero is returned if the user (group) ID is set; -1 is
     returned otherwise.



















Printed 9/3/93	    Revision 1.2 of 19/10/88			1



[0m