How to stop fork_bomb script run by user without using killall command
Hi All,
Today i attended one of any interveiw ,One of the interveiwer asked regarding how to stop fork_bomb script run by user without using killall -9 scriptname can anyone help me how to stop a script running by a user without using a killall command. Quote:
Quote:
Thanks in advance if any anyone help to get the answer for the above three question . |
I'd use pkill(1). It provides an option to kill processes for a UID.
For question #2, they may be expecting you to simply remove the immutable and append-only attributes. (But, honestly, I'd plan an outage - when possible - and do a complete system restore(8) instead. After determining how some malcontent got root access to begin with.) For question #3, take your pick. The sysstat package is fairly popular. |
All times are GMT -5. The time now is 08:34 PM. |