From 687d0825a4636b1841dc0c01fbcbf3160dddab74 Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Wed, 29 Jun 2011 14:22:46 +0200 Subject: 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 . --- man/systemd-nspawn.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'man') 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. + + + + + 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. + + + -- cgit v1.2.3-54-g00ecf