default group wheel ...
This commit is contained in:
parent
d35ef66dd8
commit
b207fd3f75
1 changed files with 1 additions and 1 deletions
2
larbs.sh
2
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
|
||||
|
|
Loading…
Reference in a new issue