mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-04 11:45:39 +00:00
Fixed up rmuser
This commit is contained in:
1 parent
703152887c
commit
cbcb6d2e0e
1 file changed
+3
-2
@@ -5,10 +5,11 @@ echo "It is assumed the user account has been un-enforced in Ansible as well."
|
||||
echo "Killing user processes..."
|
||||
sudo pkill -9 -U $1
|
||||
|
||||
echo "Arching home dir..."
|
||||
echo "Archiving home dir..."
|
||||
sudo tar cfz /home/$1.tgz /home/$1
|
||||
sudo rm -rf /home/$1
|
||||
|
||||
echo "Deleting account from system..."
|
||||
sudo userdel $1
|
||||
|
||||
sudo mail -s "User Account $1 removed from Thunix" [email protected]
|
||||
echo "User $1 removed from system. Make sure user is unenforced in ansible." | sudo mail -s "User Account $1 removed from Thunix" [email protected]
|
||||
Reference in new issue
Block a user