mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 11:21:42 +01:00
archlinux: Use sudoers.d instead of editing sudoers directly
Note that file names containing '.' or '~' are skipped.
This commit is contained in:
parent
b55f9b7fce
commit
6cfcc4cca9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user