Locking user accounts all containg the word ‘muppet’

for i in `ls /home/|grep muppet`; do passwd -l $i; done;

It’s as simple as that. Just make sure you’re an authorized user or you sudo yourself the the right level…

But you knew that, too 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *