From 6b9e5bf670c70690d44b8ce4055e1997fb0b6496 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 18 Jun 2013 10:35:44 +0200 Subject: 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" Signed-off-by: Richard Weinberger Signed-off-by: Karel Zak --- sys-utils/nsenter.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys-utils/nsenter.1') 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 -- cgit v1.2.3-55-g7522