Fixed user bug.

This commit is contained in:
Tommaso Chiti 2021-11-17 19:29:20 +01:00
parent 4ca0761b7d
commit 8dcfa60254

View file

@ -323,7 +323,8 @@ arch-chroot /mnt /bin/passwd
# Setting user password.
if [ -n "$username" ]; then
print "Adding $username with root privilege."
useradd -m -G wheel "$username"
useradd -m "$username"
usermod -aG wheel "$username"
echo "$username ALL=(ALL) ALL" >> /etc/sudoers.d/"$username"
print "Setting user password for $username."
arch-chroot /mnt /bin/passwd "$username"