Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

BSD 2.11 - man page for setgid (bsd section 3)

SETUID(3)						     Library Functions Manual							 SETUID(3)

setuid, seteuid, setruid, setgid, setegid, setrgid - set user and group ID
#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;
Setuid (setgid) sets both the real and effective user ID (group ID) of the current process to as specified. Seteuid (setegid) sets the effective user ID (group ID) of the current process. Setruid (setrgid) 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.
setreuid(2), setregid(2), getuid(2), getgid(2)
Zero is returned if the user (group) ID is set; -1 is returned otherwise. 4.2 Berkeley Distribution May 12, 1986 SETUID(3)
All times are GMT -4. The time now is 08:05 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.