소스 검색

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