Allow sudo for live user

This commit is contained in:
Lasath Fernando
2024-10-14 01:30:42 +00:00
committed by Harald Sitter
parent b6e67c1336
commit a3f76e06e7

View File

@@ -52,6 +52,12 @@ cat << EOF > /home/live/.config/kwalletrc
Enabled=false
EOF
# Allow sudo in the live environment for troubleshooting
mkdir -p /etc/sudoers.d
cat << EOF > /etc/sudoers.d/04_live
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
EOF
cp /usr/share/applications/calamares.desktop /home/live/Desktop/
chmod +x /home/live/Desktop/calamares.desktop # without this there'd be a dialog asking if it really should execute