I ws on a regular user account the other day and couldn't run any processes because of the fork bomb protection. I couldn't turn off fork bomb as it is a security risk.. so I searched around till i found a work around. you must change 3 files in the system.
the files to be changed are
/etc/profile
/etc/bashrc
/etc/profile.d/limits.sh
find
Code:
if [ "$LIMITUSER" != "root" ]; then
ulimit -n 100 -u 10 -m 100000 -d 100000 -s 8192 -c 100000 -v 100000 2>/dev/null
else
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
fi
change to
Code:
if [ "$LIMITUSER" = "root" ]; then
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
elif [ "$LIMITUSER" = "SomeUser" ]; then
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
else
ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
fi
change
someuser to the name of user you want.