From 79ee9fd144489b64818fc25c993bbd68a519c7ca Mon Sep 17 00:00:00 2001 From: Zeev Diukman Date: Sun, 18 Jan 2026 09:25:43 +0200 Subject: [PATCH] fix: pipe password strings to chpasswd for setting user passwords. --- z.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z.sh b/z.sh index 9bd87be..467e442 100755 --- a/z.sh +++ b/z.sh @@ -160,7 +160,7 @@ pacstrap -K /mnt ${packages[@]} mount -m "$efi_device" /mnt/efi 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 -- chpasswd "zeev:zeev" +chrt -- echo 'zeev:zeev' | chpasswd chrt -- echo 'zeev ALL=(ALL:ALL) ALL' > /etc/sudoers.d/zeev