summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-xhelpers/lh_chroot_hacks4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index 563f865..e2cb8cc 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -104,6 +104,10 @@ fi
# through local includes.
chown -R --quiet 0:0 chroot/home/etc/skel
+# Making sure /etc/sudoers has right owner/permissions
+chown --quiet 0:0 chroot/home/etc/sudoers
+chmod 0440 chroot/etc/sudoers
+
# This is a temporary hack to get rid of fstab;
# needs cleanup in live-initramfs first to proper fix.
if [ "${LH_DEBIAN_INSTALLER}" = "live" ]