aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge E. Hallyn <serge@hallyn.com>2011-07-27 16:34:58 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2011-07-27 16:34:58 +0200
commit9e4fcfa115ec306baf8cbc86dd0fd97678425ab5 (patch)
tree5ca47572a35e25c06ace2ccc2a2f3fbbbd95b502 /templates
parentlxc-ubuntu: Allow /dev/fuse to be used in a container (diff)
downloadlxc-9e4fcfa115ec306baf8cbc86dd0fd97678425ab5.tar.gz
lxc-9e4fcfa115ec306baf8cbc86dd0fd97678425ab5.tar.bz2
lxc-9e4fcfa115ec306baf8cbc86dd0fd97678425ab5.zip
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 <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/lxc-ubuntu.in3
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()