From 9e4fcfa115ec306baf8cbc86dd0fd97678425ab5 Mon Sep 17 00:00:00 2001 From: "Serge E. Hallyn" Date: Wed, 27 Jul 2011 16:34:58 +0200 Subject: 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 --- templates/lxc-ubuntu.in | 3 --- 1 file changed, 3 deletions(-) (limited to 'templates') diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index e450dae..0b59f26 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() -- cgit v1.2.3-65-gdbad