diff options
author | Zbigniew Jędrzejewski-Szmek | 2013-02-14 03:05:48 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-14 14:42:35 +0100 |
commit | 57580694269be36cc52138b0f82e72f09338e192 (patch) | |
tree | 1b4f0a31421327529afc83c9d2b16750f465fe49 /sys-utils/nsenter.1 | |
parent | libblkid: read whole buffer for iso_volume_descriptor (diff) | |
download | kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.tar.gz kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.tar.xz kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.zip |
unshare,nsenter: spawn shell by default
The behaviour mimics chroot.
Possibly it would have been nicer to to query the password database in
the new namepace and run the shell of the user there, but it's hard to
do correctly. getpwuid() might need to load nss plugins, and the arch
in the new namespace might be different (in case of NEWNS mounts), or
the hostname might be different, etc. So in general it's not possible
to do it reliably.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Diffstat (limited to 'sys-utils/nsenter.1')
-rw-r--r-- | sys-utils/nsenter.1 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-utils/nsenter.1 b/sys-utils/nsenter.1 index ea3c1b066..719f23224 100644 --- a/sys-utils/nsenter.1 +++ b/sys-utils/nsenter.1 @@ -4,7 +4,7 @@ nsenter \- run program with namespaces of other processes .SH SYNOPSIS .B nsenter .RI [ options ] -program +.RI [ program ] .RI [ arguments ] .SH DESCRIPTION Enters the contexts of one or more other processes and then executes specified @@ -50,6 +50,9 @@ flag). See the .BR clone (2) for exact semantics of the flags. +.TP +If program is not given, run ``${SHELL}'' (default: /bin\:/sh). + .SH OPTIONS Argument with square brakets, such as [\fIfile\fR], means optional argument. Command line syntax to specify optional argument \-\-mount=/path\:/to\:/file. |