Fixing wheel permission.

This commit is contained in:
Tommaso Chiti 2022-05-27 12:38:55 +02:00
parent e1ffe09e7d
commit ce3b0a6aa0

View file

@ -414,9 +414,7 @@ echo "root:$rootpass" | arch-chroot /mnt chpasswd
# Setting user password.
if [[ -n "$username" ]]; then
cat > /mnt/etc/sudoers.d/wheel <<EOF
%wheel ALL=(ALL:ALL) ALL
EOF
echo "%wheel ALL=(ALL:ALL) ALL" > /mnt/etc/sudoers.d/wheel
print "Adding the user $username to the system with root privilege."
arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username"
print "Setting user password for $username."