setuid.2: Clarify that setuid() changes all UIDs when caller has CAP_SETUID

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-03-22 09:52:28 +01:00
parent 4e701e41a5
commit 599226abb6
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ setuid \- set user identity
.SH DESCRIPTION
.BR setuid ()
sets the effective user ID of the calling process.
If the effective UID of the caller is root,
If the effective UID of the caller is root
(more precisely: if the caller has the
.BR CAP_SETUID
capability),
the real UID and saved set-user-ID are also set.
.PP
Under Linux,