DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

seteuid(SLIB-osr5)


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-osr5), getuid(S-osr5), setreuid(SSC-osr5), setregid(SSC-osr5)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005