geteuid (2)
Leading comments
Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fol...
NAME
getuid geteuid - get user identificationLIBRARY
Lb libcSYNOPSIS
In unistd.h In sys/types.h Ft uid_t Fn getuid void Ft uid_t Fn geteuid voidDESCRIPTION
The Fn getuid system call returns the real user ID of the calling process. The Fn geteuid system call returns the effective user ID of the calling process.The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of ``set-user-ID '' mode processes, Fn getuid is used to determine the real-user-id of the calling process.