archlinux: Use sudoers.d instead of editing sudoers directly

Note that file names containing '.' or '~' are skipped.
This commit is contained in:
Donovan Glover 2018-12-03 20:26:32 -05:00
parent b55f9b7fce
commit 6cfcc4cca9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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"