Skip to content

Commit

Permalink
autoinstaller: make wheel permission come first, fix permissions
Browse files Browse the repository at this point in the history
visudo -c shows perms need 0440

Also w is late in the alphabet, hard to alter ordering
  • Loading branch information
Vaelatern authored and the-maldridge committed Oct 12, 2022
1 parent 3ec7fa1 commit c9dbeed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dracut/autoinstaller/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ VAI_prepare_chroot() {

VAI_configure_sudo() {
# Give wheel sudo
echo "%wheel ALL=(ALL:ALL) ALL" > "${target}/etc/sudoers.d/wheel"
echo "%wheel ALL=(ALL:ALL) ALL" > "${target}/etc/sudoers.d/00-wheel"
chmod 0440 "${target}/etc/sudoers.d/00-wheel"
}

VAI_correct_root_permissions() {
Expand Down

0 comments on commit c9dbeed

Please sign in to comment.