Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ seteuid(3) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setreuid(2)

setregid(2)

getuid(2)

getgid(2)

SETUID(3)  —  Unix Programmer’s Manual

NAME

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

SYNOPSIS

#include <sys/types.h>

setuid(uid)
seteuid(euid)
setruid(ruid)
uid_t uid, euid, ruid;

setgid(gid)
setegid(egid)
setrgid(rgid)
gid_t gid, egid, 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 can be issued only by the super-user or a user whose real or effective ID matches the argument. 

SEE ALSO

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

DIAGNOSTICS

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

4.2 Berkeley Distribution  —  May 12, 1986

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