Subscribe

Purging a user on Ubuntu/Debian

Jan
21

I wrote a bash script that, given a user, finds all instances of his/her public keys, deletes them, then deletes the user. It’ not perfect and it’s my first bash script that actually uses control structures.

To use it, run this:

bash -c "`curl -L http://gist.github.com/raw/282619/cafe0b353672a4de292586951f88ab82d0b50a1c/purge_user.sh`"

View the source on Gist

Tags: , , , , ,

Leave a Reply