Преглед на файлове

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 години
родител
ревизия
c9dbeed8a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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() {