Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setuid(3) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getuid(2)

SETUID(3)  —  System Interface Manual — Subroutines

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 super-user or if the argument is the real or effective ID. 

SEE ALSO

getuid(2)

DIAGNOSTICS

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

Sun System Release 0.3  —  4 April 1983

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