Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setgid(3) — Ultrix-32 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setreuid(2)

setregid(2)

getuid(2)

getgid(2)

setuid(3)

NAME

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

SYNTAX

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

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

DESCRIPTION

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

The seteuid subroutine, setegid, sets the effective user ID (group ID) of the current process.

The setruid subroutine, setruid, 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. 

ENVIRONMENT

Differs from the System V definition in that it returns EPERM instead of EINVAL if the argument is out of range. 

DIAGNOSTICS

Zero is returned if the user (group) ID is set; −1 is returned otherwise. 

SEE ALSO

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

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