Commit 9e4fcfa1 by Serge E. Hallyn Committed by Daniel Lezcano

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 623f98d8
...@@ -343,9 +343,6 @@ do_bindhome() ...@@ -343,9 +343,6 @@ do_bindhome()
fi fi
shad=`getent shadow $user` shad=`getent shadow $user`
echo $shad >> $rootfs/etc/shadow echo $shad >> $rootfs/etc/shadow
for g in `groups $user | cut -d: -f 2-`; do
chroot $rootfs adduser $user $g
done
} }
clean() clean()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment