Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setegid(3c) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setreuid(2)

setregid(2)

getuid(2)

getgid(2)



setuid(3C)                    4 BSD                    setuid(3C)



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

SYNOPSIS
     int setuid (uid)
     int uid;

     int seteuid (euid)
     int euid;

     int setruid (ruid)
     int ruid;

     int setgid (gid)
     int gid;

     int setegid (egid)
     int egid;

     int setrgid (rgid)
     int 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 (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.

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.













Page 1                        CX/UX Programmer's Reference Manual



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