summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.1
diff options
context:
space:
mode:
authorRichard Weinberger2013-06-18 10:35:44 +0200
committerKarel Zak2013-06-18 10:35:44 +0200
commit6b9e5bf670c70690d44b8ce4055e1997fb0b6496 (patch)
tree68c2dbf9136349b6eba1dfb659cf73c3c399e7ea /sys-utils/nsenter.1
parentcal: fix -y output for UTF8 (diff)
downloadkernel-qcow2-util-linux-6b9e5bf670c70690d44b8ce4055e1997fb0b6496.tar.gz
kernel-qcow2-util-linux-6b9e5bf670c70690d44b8ce4055e1997fb0b6496.tar.xz
kernel-qcow2-util-linux-6b9e5bf670c70690d44b8ce4055e1997fb0b6496.zip
nsenter: Allow selecting the uid and gid to be used in the entered userns
Using -S (--setuid) and -G (--setgid) one can select the uid/gid which will be used in the entered user namespace. [kzak@redhat.com: - use setuid/gid unconditionally (always), - update man page] Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.1')
-rw-r--r--sys-utils/nsenter.18
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-utils/nsenter.1 b/sys-utils/nsenter.1
index da22d0866..e3c08afa3 100644
--- a/sys-utils/nsenter.1
+++ b/sys-utils/nsenter.1
@@ -123,7 +123,13 @@ file.
\fB\-U\fR, \fB\-\-user\fR[=\fIfile\fR]
Enter the user namespace. If no file is specified, enter the user namespace of
the target process. If file is specified, enter the user namespace specified by
-file.
+file. See also \fB\-\-setuid\fR and \fB\-\-setgid\fR options.
+.TP
+\fB\-G\fR, \fB\-\-setgid\fR \fIgid\fR
+Set group ID which will be used in the entered user namespace.
+.TP
+\fB\-S\fR, \fB\-\-setuid\fR \fIuid\fR
+Set user ID which will be used in the entered user namespace.
.TP
\fB\-r\fR, \fB\-\-root\fR[=\fIdirectory\fR]
Set the root directory. If no directory is specified, set the root directory to