mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
Fixing wheel permission.
This commit is contained in:
parent
e1ffe09e7d
commit
ce3b0a6aa0
1 changed files with 1 additions and 3 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue