From: Serge E. Hallyn Date: Wed, 27 Jul 2011 14:34:58 +0000 (+0200) Subject: Don't try to add host user's groups in container X-Git-Tag: lxc-0.7.5~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4fcfa115ec306baf8cbc86dd0fd97678425ab5;p=thirdparty%2Flxc.git Don't try to add host user's groups in container When '-b user' is specified to lxc-ubuntu container creation template, do not automatically add all the groups of which user is a member on the host, to user's groups in the container. Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index e450dae31..0b59f26f7 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -343,9 +343,6 @@ do_bindhome() fi shad=`getent shadow $user` echo $shad >> $rootfs/etc/shadow - for g in `groups $user | cut -d: -f 2-`; do - chroot $rootfs adduser $user $g - done } clean()