Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgid(2)

getuid(2)

setregid(2)

setreuid(2)



SETUID(3C)              COMMAND REFERENCE              SETUID(3C)



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

SYNOPSIS
     setuid(uid)
     int uid;

     seteuid(euid)
     int euid;

     setruid(ruid)
     int ruid;

     setgid(gid)
     int gid;

     setegid(egid)
     int egid;

     setrgid(rgid)
     int rgid;

DESCRIPTION
     Setuid (setgid) sets both the real and effective user ID
     (group ID) of the current process to the given ID.

     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.

     Only the superuser may change the real user or group ID of a
     process.  Unprivileged users may change the effective user
     or group ID to the real user or group ID, but to no other.

DIAGNOSTICS
     Upon successful completion, a value of 0 is returned.
     Otherwise, a value of -1 is returned and errno is set to
     indicate the error.

SEE ALSO
     getgid(2), getuid(2), setregid(2), setreuid(2).











Printed 10/17/86                                                1



%%index%%
na:72,115;
sy:187,981;
de:1168,809;
di:1977,255;
se:2232,176;
%%index%%000000000095

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