diff --git a/easy-arch.sh b/easy-arch.sh index 9ff72a3..f55137c 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -321,7 +321,10 @@ 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 "Setting user password for $username." + passwd $username echo "$username ALL=(ALL) ALL" >> /etc/sudoers.d/"$username" print "Setting user password for $username." arch-chroot /mnt /bin/passwd "$username"