From 6cfcc4cca95edd9a0061734febfdf94da477ceea Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 3 Dec 2018 20:26:32 -0500 Subject: [PATCH] archlinux: Use sudoers.d instead of editing sudoers directly Note that file names containing '.' or '~' are skipped. --- .archlinux/install-scripts/004-postinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index d75cb4e0..c22837e7 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -25,7 +25,7 @@ sed -i '/Color/s/^#//g' /mnt/etc/pacman.conf sed -i '/VerbosePkgLists/s/^#//g' /mnt/etc/pacman.conf # Give users in the wheel group permission to use sudo -echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers +echo "%wheel ALL=(ALL) ALL" > /mnt/etc/sudoers.d/01_wheel_all # Create a new user account with sudo privileges and the fish shell. arch-chroot /mnt useradd -m -g users -G wheel -s /usr/bin/fish "$USERNAME"