License Public Domain
Lines 1
Owner: Stou S.
Viewable by Everyone
Editable by Stou S.
Stay up to dateembedded code automagically updates, each snippet and article has a feed Join Siafoo Now or Learn More

Unix Russian Roulette Atom Feed 1

In Brief From the fortune program
# 's
1passwd -l $(tail +$(random $(wc -l /etc/passwd)) /etc/passwd | head -n 1 | cut -f 1 -d : )

From the fortune program


over 10 years ago (17 Jul 2010 at 11:20 AM) by arvind1
$ sudo passwd -l $(tail -n +$(echo $RANDOM%$(cat /etc/passwd | wc -l) | bc) /etc/passwd | head -n 1 | cut -f 1 -d : )