[SUCS Devel] New delete script

Imran Hussain imranh at sucs.org
Sun Jul 12 16:52:28 BST 2015


This is more of a todo list for myself but if anyone has any feedback, 
go for it. Or if anyone wants to do it, help yourself!

1. need to be able to set criteria for selecting users to be deleted 
(the expiry year, specific users, exclude specific users)
2. needs to be able to email users warning them of upcoming deletion 
(be able to set dates in the warning emails, change warning email text, 
control exactly who to send warning emails to)
3. needs to be able to generate a list of who to be deleted based on 1
4. remove user ldap account
5. move user home dir to /home/deleted
6. move mailbox from /var/mail to /home/deleted/user/user.mailbox
7. unsubscribe user from all mailing lists on lists.sucs.org
8. remove user from all ldap groups they are in
9. remove user (roles and privs) from postgres and msql dbs
10. remove user info from the members table in the sucs db
11. remove user from sudoers file
12. remove user vhost
13. remove user from /etc/aliases
14. remove users ejabberd privs
15. remove user from pykta db
16. something else i'm probably forgetting about

The script also shouldn't be stupid, it should know if they are logged 
in and if they are kill them, it shouldn't let you delete the account 
you're running the script from and other things.

-- 
Imran Hussain
http://sucs.org



More information about the Devel mailing list