[0m


GETUID(2)	    UNIX Programmer's Manual		GETUID(2)



[1mNAME
     [0mgetuid, geteuid - get user identity

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

     uid = getuid()
     uid_t uid;

     euid = geteuid()
     uid_t euid;

DESCRIPTION
     [0m_G_e_t_u_i_d returns the real user ID of the current process,
     _g_e_t_e_u_i_d the effective user ID.

     The real user ID identifies the person who is logged in.
     The effective user ID gives the process additional permis-
     sions during execution of "set-user-ID" mode processes,
     which use _g_e_t_u_i_d to determine the real-user-id of the pro-
     cess that invoked them.

[1mSEE ALSO
     [0mgetgid(2), setreuid(2)































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



[0m