chiark / gitweb /
nspawn: spawn shell under specified --user
authorMichal Vyskocil <mvyskocil@suse.cz>
Wed, 29 Jun 2011 12:22:46 +0000 (14:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 21:51:14 +0000 (23:51 +0200)
commit687d0825a4636b1841dc0c01fbcbf3160dddab74
tree8695af5a1a01282798d354e6fc8119fd26f97f53
parent1cccf435694675ca1584811179784fc2292e351b
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
src/nspawn.c