Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
setresuid(2)
Edit
PageHistory
Diff
Info
LikePages
SETRESUID !!!SETRESUID NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO SEE ALSO ---- !!NAME setresuid, setresgid - set real, effective and saved user or group ID !!SYNOPSIS __#include __ __int setresuid(uid_t__ ''ruid''__, uid_t__ ''euid''__, uid_t__ ''suid''__); int setresgid(gid_t__ ''rgid''__, gid_t__ ''egid''__, gid_t__ ''sgid''__);__ !!DESCRIPTION __setresuid__ (introduced in Linux 2.1.44) sets the real user ID, the effective user ID, and the saved set-user-ID of the current process. Unprivileged user processes (i.e., processes with each of real, effective and saved user ID nonzero) may change the real, effective and saved user ID, each to one of: the current uid, the current effective uid or the current saved uid. The super-user may set real, effective and saved user ID to arbitrary values. If one of the parameters equals -1, the corresponding value is not changed. Completely analogously, __setresgid__ sets the real, effective and saved group ID's of the current process, with the same restrictions for processes with each of real, effective and saved user ID nonzero. !!RETURN VALUE On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately. !!ERRORS __EPERM__ The current process was not privileged and tried to change the IDs is a not allowed way. !!CONFORMING TO This call is Linux-specific. !!SEE ALSO getuid(2), setuid(2), getreuid(2), setreuid(2), getresuid(2) ----
7 pages link to
setresuid(2)
:
Man2s
setegid(2)
seteuid(2)
setregid(2)
setreuid(2)
getresgid(2)
getresuid(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.