Enhance makeuser script with new features

This commit is contained in:
deepend-tildeclub 2025-09-10 11:01:29 -06:00 committed by GitHub
parent cec665c4c8
commit 5b03e3d6ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 6 deletions

View File

@ -65,15 +65,19 @@ case $1 in
printf "removing .git from new homedir\n"
sudo rm -rf /home/$1/.git
printf "removing skel git README.md\n"
sudo rm /home/$1/README.md
printf "fix sorting in /etc/passwd\n"
sudo pwck -s
# printf "applying disk quota\n"
# sudo setquota -u "$1" 1048576 3145728 0 0 /home
printf "applying disk quota\n"
sudo xfs_quota -x -c "limit -u bsoft=1G bhard=3G $1"
printf "making znc user\n"
/usr/local/bin/znccreate.py "$1" "$newpw"
/usr/local/bin/znccreate.py "$1" "$newpw" "MaxNetworks=3"
printf "Adding user to Helpdesk\n"
/usr/local/bin/helpdesk_admin.sh "add" "$1" "$2"
esac