seteuid(SLIB)
seteuid, setegid --
set user and group ID
Syntax
cc ... -lsocket
int
seteuid(euid);
int euid;
int
setegid(egid);
int egid;
Description
seteuid (setegid) sets the effective
user ID (group ID) of the current process.
These calls are permitted only to the super-user,
or if the argument is the real or effective ID.
Diagnostics
Zero is returned if the user (group) ID is set;
otherwise, -1 is returned, and the global variable
errno is set as for setreuid or setregid.
See also
setuid(S),
getuid(S),
setreuid(SSC),
setregid(SSC)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003