Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dracut/vmklive/adduser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down