Procházet zdrojové kódy

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 před 2 roky
rodič
revize
c9dbeed8a4
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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() {