SETUID(3C) COMMAND REFERENCE SETUID(3C) NAME setuid, seteuid, setruid, setgid, setegid, setrgid - set user and group ID SYNOPSIS setuid(uid) int uid; seteuid(euid) int euid; setruid(ruid) int ruid; setgid(gid) int gid; setegid(egid) int egid; setrgid(rgid) int rgid; DESCRIPTION Setuid (setgid) sets both the real and effective user ID (group ID) of the current process to the given ID. 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. Only the superuser may change the real user or group ID of a process. Unprivileged users may change the effective user or group ID to the real user or group ID, but to no other. DIAGNOSTICS Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO getgid(2), getuid(2), setregid(2), and setreuid(2). Printed 5/12/88 1
%%index%% na:312,131; sy:443,1493; de:1936,1013; di:2949,319; se:3268,208; %%index%%000000000098