mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Fixed user bug.
This commit is contained in:
parent
4ca0761b7d
commit
8dcfa60254
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue