Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setuid(2) — Ultrix-11 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getuid(2)

SETUID(2)

NAME

setuid, setgid − set user and group ID

SYNOPSIS

setuid(uid)

setgid(gid)

DESCRIPTION

The user ID (group ID) of the current process is set to the argument.  Both the effective and the real ID are set.  These calls are only permitted to the superuser or if the argument is the real ID. 

DIAGNOSTICS

Setuid will fail and the user ID will be unchanged if:

[EPERM] A non-superuser attempt is made to change the effective user ID to anything other than the real user ID. 

Setgid will fail and the group ID will be unchanged if:

[EPERM] A non-superuser attempt is made to change the effective group ID to anything other than the real group ID. 

SEE ALSO

getuid(2)

ASSEMBLER

(setuid = 23.) 
(user ID in r0)
sys setuid

(setgid = 46.) 
(group ID in r0)
sys setgid

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