larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0f2a196961a93fc88e93fc26765d6531c5a97f50
parent f57262b9b3c04e269bb43e749ef99db5af8c24c9
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun,  5 Aug 2018 14:56:18 -0400

will ensure user home exists and is owned

Diffstat:
Mlarbs.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/larbs.sh b/larbs.sh @@ -70,7 +70,7 @@ adduserandpass() { \ # Adds user `$name` with password $pass1. dialog --infobox "Adding user \"$name\"..." 4 50 useradd -m -g wheel -s /bin/bash $name &>/dev/null || - usermod -a -G wheel $name + usermod -a -G wheel $name && mkdir -p /home/$name && chown $name:wheel /home/$name echo "$name:$pass1" | chpasswd unset pass1 pass2 ;}