Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgid(2)

getuid(2)

setregid(2)

setreuid(2)

SETUID(3)  —  C LIBRARY FUNCTIONS

NAME

setuid, seteuid, setruid, setgid, setegid, setrgid − set user and group ID

SYNOPSIS

setuid(uid)
seteuid(euid)
setruid(ruid)

setgid(gid)
setegid(egid)
setrgid(rgid)

DESCRIPTION

setuid() (setgid) sets both the real and effective user ID (group ID) of the current process to as specified. 

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. 

These calls are only permitted to the super-user or if the argument is the real or effective ID. 

SEE ALSO

getgid(2), getuid(2), setregid(2), setreuid(2)

DIAGNOSTICS

Zero is returned if the user (group) ID is set; −1 is returned otherwise, with the global variable errno set as for setreuid() or setregid. 

Sun Release 4.0  —  Last change: 22 November 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026