summaryrefslogtreecommitdiffstats
path: root/login-utils/su.1
diff options
context:
space:
mode:
authorKarel Zak2012-08-28 16:32:28 +0200
committerKarel Zak2012-09-04 17:00:30 +0200
commit8528ea2f81487142047a49ec6601a745f2eab365 (patch)
tree2260c6946db300c7decaaf8429f6fee9e64333f1 /login-utils/su.1
parentbuild-sys: add configure summary (diff)
downloadkernel-qcow2-util-linux-8528ea2f81487142047a49ec6601a745f2eab365.tar.gz
kernel-qcow2-util-linux-8528ea2f81487142047a49ec6601a745f2eab365.tar.xz
kernel-qcow2-util-linux-8528ea2f81487142047a49ec6601a745f2eab365.zip
su: add --group and --supp-group options
These options allow to specify alternative groups. The command su(1) has to be executed by root. The implementation is based on Fedora runuser(1) command. For example: # su --group=kzak --supp-group=uuidd - # id uid=0(root) gid=1000(kzak) groups=0(root),985(uuidd),1000(kzak) non-root user: $ su --group=kzak - su: only root can specify alternative groups Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/su.1')
-rw-r--r--login-utils/su.16
1 files changed, 6 insertions, 0 deletions
diff --git a/login-utils/su.1 b/login-utils/su.1
index 598cebd8d..59e17314d 100644
--- a/login-utils/su.1
+++ b/login-utils/su.1
@@ -59,6 +59,12 @@ Pass
to the shell which may or may not be useful depending on the
shell.
.TP
+\fB\-g\fR, \fB\-\-group\fR=\fIgroup\fR\fR
+specify the primary group, this option is allowed for root user only
+.TP
+\fB\-G\fR, \fB\-\-supp-group\fR=\fIgroup\fR\fR
+specify a supplemental group, this option is allowed for root user only
+.TP
\fB\-\fR, \fB\-l\fR, \fB\-\-login\fR
Starts the shell as login shell with an environment similar to a real
login: