mirror of
https://github.com/tildeclub/makeuser.git
synced 2026-03-03 10:00:18 +00:00
add users to team group
This commit is contained in:
2
makeuser
2
makeuser
@@ -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