[SUCS Devel] New delete script

Imran Hussain imranh at sucs.org
Sun Jul 12 18:35:39 BST 2015


On 12.07.2015 17:52, Tim wrote:
> On 12/07/15 16:52, Imran Hussain wrote:
>> 7. unsubscribe user from all mailing lists on lists.sucs.org
> You don't want to blindly remove their non sucs address from all the
> lists, as some of the lists are run for other societies, e.g.
> mountaineering.

Yeah I should have qualified, all SUCS lists.

>> 8. remove user from all ldap groups they are in
> Does ldap not do this for you when you delete the user?

Nope.

>> 11. remove user from sudoers file
> Really not a fan of any script mutilating the sudoers file, and is
> there an automatable version of visudo to do it with anyway? Better
> alternative is to just check and notify the person running the script
> that they need to do it.

Have the script email admin@ then saying remove x username from 
sudoers? I'm not going to bodge together some horrible thing, if there's 
something that can automate it then I'll use that. But notifying the 
user & admin@ is probably the way I'll do it.


> There are various scripts round that do a lot of those bits already,
> but they are all in dire need of a rewrite, still probably a good
> starting point for how to go about the various things.

Yeah, currently we have scripts to do about 5 of the things on the 
list.


-- 
Imran Hussain
http://sucs.org



More information about the Devel mailing list