summaryrefslogtreecommitdiff
path: root/man/systemd-nspawn.xml
diff options
context:
space:
mode:
authorMichal Vyskocil <mvyskocil@suse.cz>2011-06-29 14:22:46 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-01 23:51:14 +0200
commit687d0825a4636b1841dc0c01fbcbf3160dddab74 (patch)
tree8695af5a1a01282798d354e6fc8119fd26f97f53 /man/systemd-nspawn.xml
parent1cccf435694675ca1584811179784fc2292e351b (diff)
nspawn: spawn shell under specified --user
Add -u/--user option, which changes the effective and real user and group id to the new value. The user must exists in the chroot, otherwise it will fail. Both username and user id are accepted. The user home is created as well. It also setup HOME, USER, LOGNAME and SHELL variables .
Diffstat (limited to 'man/systemd-nspawn.xml')
-rw-r--r--man/systemd-nspawn.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
index e1b33f72c5..03c39fc3de 100644
--- a/man/systemd-nspawn.xml
+++ b/man/systemd-nspawn.xml
@@ -139,6 +139,19 @@
used.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>--user=</option></term>
+ <term><option>--u</option></term>
+
+ <listitem><para>Run the command
+ under specified user, create home
+ directory and cd into it. As rest
+ of systemd-nspawn, this is not
+ the security feature and limits
+ against accidental changes only.
+ </para></listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>