From b207fd3f758bcdddff27674ed3be36b6ff700d09 Mon Sep 17 00:00:00 2001 From: Dejan Kutle Date: Wed, 25 May 2022 10:38:39 +0200 Subject: [PATCH] default group wheel ... --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 18622ae..b281ba3 100755 --- a/larbs.sh +++ b/larbs.sh @@ -57,7 +57,7 @@ preinstallmsg() { \ adduserandpass() { \ # Adds user `$name` with password $pass1. dialog --infobox "Adding user \"$name\"..." 4 50 - useradd -m -G wheel -s /bin/zsh "$name" >/dev/null 2>&1 || + useradd -m -g wheel -s /bin/zsh "$name" >/dev/null 2>&1 || usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name":wheel /home/"$name" export repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel "$(dirname "$repodir")" echo "$name:$pass1" | chpasswd