Difference between revisions of "Bombs"

From wikipost
Jump to navigationJump to search
 
(No difference)

Latest revision as of 13:03, 30 August 2011

Classic Bash creativity:

:(){ :|:& };:


To prevent it, make sure /etc/security/limits.conf has something sensible:

vivek hard nproc 300 @student hard nproc 50 @faculty soft nproc 100 @pusers hard nproc 200


Above will prevent anyone in the student group from having more than 50 processes, faculty and pusers group limit is set to 100 and 200. Vivek can create only 300 process. Please note that KDE and Gnome

desktop system can launch many process.