How to prevent rm -rf * or rm -rf / from executing?

ottdev

Well-Known Member
Oct 1, 2013
122
4
18
cPanel Access Level
Root Administrator
I'm sure someone must have asked in these forums before, but search is ignoring the string rm -rf (too short/common) so I am not finding relevant results.

I believe it has something to do with bash rc
Can anyone point me to current correct instructions for CPanel servers ?
 

madmanmachines

Well-Known Member
Nov 28, 2014
94
4
8
cPanel Access Level
Root Administrator
HI,

The best is to just be careful not to execute as there are many commands to accomplish the same result. You won't be able to block all methods to destroy your machine. If you are still nervous you may accidentally remove directories, you can try safe-rm:
--
launchpad.net/safe-rm
--

Thanks,
 
Last edited by a moderator: