[Lxc-users] [PATCH] Don't try to add host user's groups in container

Serge E. Hallyn serge at hallyn.com
Mon Jul 25 01:10:19 UTC 2011


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 <serge.hallyn at ubuntu.com>
---
 templates/lxc-ubuntu.in |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

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()
-- 
1.7.4.1





More information about the lxc-users mailing list