*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: setruid | Section: 3 | Source: Digital UNIX | File: setruid.3.gz
setruid(3) Library Functions Manual setruid(3) NAME setruid, seteuid - Set the process's user IDs LIBRARY Standard C Library (libc.a) SYNOPSIS #include <unistd.h> int setruid( uid_t ruid); int seteuid( uid_t euid); PARAMETERS Specifies the effective user ID to set. Specifies the real user ID to set. DESCRIPTION The setruid() and seteuid() functions reset the process's real and ef- fective user IDs, respectively. A process with superuser privilege can set either ID to any value. An unprivileged process can only set the effective user ID if the euid pa- rameter is equal to either the real, effective, or saved user ID of the process. An unprivileged process cannot set the real user ID. RETURN VALUES Upon successful completion, the seteuid() and setruid()functions return a value of 0 (zero). Otherwise, a value of -1 is returned and errno is set to indicate the error. ERRORS If the seteuid() or setruid()function fails, errno is set to the fol- lowing value: The euid parameter is not equal to either the real or saved user IDs of the process and the calling process does not have ap- propriate privilege. RELATED INFORMATION Functions: getuid(2), setreuid(2). delim off setruid(3)

Navigation Options