/* * Sample program for getuid system call - No.24 * * getuid, geteuid(2) - get user identity * * Synopsis * #include * #include * * uid_t getuid(void); * uid_t geteuid(void); * * Description * getuid returns the real user ID of the current process. * * geteuid retuns the effective usr ID of the current process. */ #include main() { printf("%d\n", getuid()); exit(0); }