Przeglądaj źródła

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
Toyam Cox 2 lat temu
rodzic
commit
c9dbeed8a4
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      dracut/autoinstaller/install.sh

+ 2 - 1
dracut/autoinstaller/install.sh

@@ -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() {