SETREUID(2) COMMAND REFERENCE SETREUID(2)
NAME
setreuid - set real and effective user ID's
SYNOPSIS
setreuid(ruid, euid)
int ruid, euid;
DESCRIPTION
The real and effective user ID's of the current process are
set to ruid and euid. If ruid or euid is -1, the current
user ID is filled in by the system. Only the super-user may
modify the real user ID of a process. Users other than the
super-user may change the effective user ID of a process
only to the real user ID.
DIAGNOSTICS
[EPERM] The current process is not the super-user and a
change other than changing the effective user
ID to the real user ID was specified.
RETURN VALUE
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
getuid(2), setregid(2), and setuid(3c).
Printed 4/6/89 1
%%index%%
na:336,95;
sy:431,457;
de:888,506;
di:1394,309;
rv:1703,280;
se:1983,197;
%%index%%000000000107