From 93a6baf96138b75cbcc90a47abfc4564ab39131f Mon Sep 17 00:00:00 2001 From: Cyfraka <45599591+Cyfraka@users.noreply.github.com> Date: Sun, 7 Nov 2021 20:05:12 +0100 Subject: [PATCH] Update easy-arch.sh Now will ask for passwd. --- easy-arch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"