fix: pipe password strings to chpasswd for setting user passwords.
This commit is contained in:
parent
731a6183b9
commit
79ee9fd144
1 changed files with 2 additions and 2 deletions
4
z.sh
4
z.sh
|
|
@ -160,7 +160,7 @@ pacstrap -K /mnt ${packages[@]}
|
||||||
mount -m "$efi_device" /mnt/efi
|
mount -m "$efi_device" /mnt/efi
|
||||||
genfstab -U /mnt > /mnt/etc/fstab
|
genfstab -U /mnt > /mnt/etc/fstab
|
||||||
|
|
||||||
chrt -- chpasswd "root:root"
|
chrt -- echo 'root:root' | chpasswd
|
||||||
chrt -- useradd -m -G wheel -s /usr/bin/bash zeev
|
chrt -- useradd -m -G wheel -s /usr/bin/bash zeev
|
||||||
chrt -- chpasswd "zeev:zeev"
|
chrt -- echo 'zeev:zeev' | chpasswd
|
||||||
chrt -- echo 'zeev ALL=(ALL:ALL) ALL' > /etc/sudoers.d/zeev
|
chrt -- echo 'zeev ALL=(ALL:ALL) ALL' > /etc/sudoers.d/zeev
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue