]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/setresuid.2
_syscall.2, bpf.2, cacheflush.2, capget.2, chdir.2, chmod.2, chroot.2, clock_getres...
[thirdparty/man-pages.git] / man2 / setresuid.2
index 9cc4d7468d8a533db072eeb750a3a8a2887ab760..a2d8555451c0fca536329c29f9eca8cc4aee47f2 100644 (file)
@@ -39,22 +39,22 @@ setresuid, setresgid \- set real, effective and saved user or group ID
 .BR setresuid ()
 sets the real user ID, the effective user ID, and the
 saved set-user-ID of the calling process.
-
+.PP
 An unprivileged process may change its real UID,
 effective UID, and saved set-user-ID, each to one of:
 the current real UID, the current effective UID or the
 current saved set-user-ID.
-
+.PP
 A privileged process (on Linux, one having the \fBCAP_SETUID\fP capability)
 may set its real UID, effective UID, and
 saved set-user-ID to arbitrary values.
-
+.PP
 If one of the arguments equals \-1, the corresponding value is not changed.
-
+.PP
 Regardless of what changes are made to the real UID, effective UID,
 and saved set-user-ID, the filesystem UID is always set to the same
 value as the (possibly new) effective UID.
-
+.PP
 Completely analogously,
 .BR setresgid ()
 sets the real GID, effective GID, and saved set-group-ID
@@ -66,7 +66,7 @@ On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
 is set appropriately.
-
+.PP
 .IR Note :
 there are cases where
 .BR setresuid ()
@@ -122,7 +122,7 @@ they also appear on HP-UX and some of the BSDs.
 Under HP-UX and FreeBSD, the prototype is found in
 .IR <unistd.h> .
 Under Linux, the prototype is provided by glibc since version 2.3.2.
-
+.PP
 The original Linux
 .BR setresuid ()
 and