From b80c5089a20efcb8da98d417da402efc6bc8185f Mon Sep 17 00:00:00 2001 From: lnoxsian Date: Wed, 27 May 2026 20:22:55 +0530 Subject: [PATCH] /dracut/vmklive/adduser.sh: fixes for the adduser.sh for the live system proper sudo permission --- dracut/vmklive/adduser.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dracut/vmklive/adduser.sh b/dracut/vmklive/adduser.sh index 68d94b2cdb..f743868384 100644 --- a/dracut/vmklive/adduser.sh +++ b/dracut/vmklive/adduser.sh @@ -34,6 +34,8 @@ chroot ${NEWROOT} sh -c "echo "$USERNAME:voidlinux" | chpasswd -c SHA512" # Enable sudo permission by default. if [ -f ${NEWROOT}/etc/sudoers ]; then echo "${USERNAME} ALL=(ALL:ALL) NOPASSWD: ALL" > "${NEWROOT}/etc/sudoers.d/99-void-live" + # Set strict permissions (REQUIRED by sudo) + chmod 0440 "${NEWROOT}/etc/sudoers.d/99-void-live" fi if [ -d ${NEWROOT}/etc/polkit-1 ]; then