Skip to content

Commit c9dbeed

Browse files
Vaelaternthe-maldridge
authored andcommitted
autoinstaller: make wheel permission come first, fix permissions
visudo -c shows perms need 0440 Also w is late in the alphabet, hard to alter ordering
1 parent 3ec7fa1 commit c9dbeed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dracut/autoinstaller/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ VAI_prepare_chroot() {
8181

8282
VAI_configure_sudo() {
8383
# Give wheel sudo
84-
echo "%wheel ALL=(ALL:ALL) ALL" > "${target}/etc/sudoers.d/wheel"
84+
echo "%wheel ALL=(ALL:ALL) ALL" > "${target}/etc/sudoers.d/00-wheel"
85+
chmod 0440 "${target}/etc/sudoers.d/00-wheel"
8586
}
8687

8788
VAI_correct_root_permissions() {

0 commit comments

Comments
 (0)