]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setpriv: improve description in man page
authorSam Morris <sam@robots.org.uk>
Thu, 8 Mar 2018 15:43:54 +0000 (15:43 +0000)
committerSam Morris <sam@robots.org.uk>
Thu, 8 Mar 2018 16:21:48 +0000 (16:21 +0000)
sys-utils/setpriv.1

index f7f3f572aeb5d6fe649339e56878da24bd92b852..8965d8568ad6d39cbf32800e73de488fa9af9d97 100644 (file)
@@ -10,11 +10,22 @@ setpriv \- run a program with different Linux privilege settings
 Sets or queries various Linux privilege settings that are inherited across
 .BR execve (2).
 .PP
-The difference between the commands setpriv and su (or runuser) is that setpriv does
-not use open PAM session and does not ask for password.
-It's simple non-set-user-ID wrapper around
-.B execve
-system call.
+In comparison to
+.BR su (1)
+and
+.BR runuser (1),
+.BR setpriv (1)
+neither uses PAM, nor does it prompt for a password.
+It is a simple, non-setuid wrapper around
+.BR execve (2),
+and can be used to drop privileges in the same way as
+.BR setuidgid (8)
+from
+.BR daemontools ,
+.BR chpst (8)
+from
+.BR runit ,
+or similar tools shipped by other service managers.
 .SH OPTION
 .TP
 .B \-\-clear\-groups