.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)setuid.2 6.1 (Berkeley) %G%
setuid, seteuid, setruid, setgid, setegid, setrgid \- set user and group ID
sets both the real and effective
user ID (group ID) of the current process to
sets the effective user ID (group ID) of the
sets the real user ID (group ID) of the
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.