mirror of
https://github.com/tildeclub/makeuser.git
synced 2026-10-25 22:45:38 +00:00
add users to team group
This commit is contained in:
1 parent
8ac1e9271b
commit
abaff4c37d
1 file changed
+1
-1
@@ -97,7 +97,7 @@ while [[ -n $1 ]]; do
|
||||
newpw=$(pwgen -1B 10)
|
||||
pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');")
|
||||
|
||||
useradd -m -p $pwcrypt -s /bin/bash $user || exit 1
|
||||
useradd -m -g 100 -p $pwcrypt -s /bin/bash $user || exit 1
|
||||
|
||||
sed -e "s/newusername/$user/g" -e "s/newpassword/$newpw/" email.tmpl | sendmail $email sudoers@tilde.team
|
||||
|
||||
|
||||
Reference in new issue
Block a user