in reply to Enhancing Debian Reference

If this is of any use to you (I hope it is), I wrote a couple of sample scripts in order to show some security-related implications quite a while ago. You can take them and do as you wish with them ;-) And don't worry, the explanation is in Spanish, but if you want me to translate anything, just ask for it.
Here it is.