Quote:
Originally Posted by
shiek.kaleem
Can some one suggest me the way to disable " rm -rf * " or " rm -rf / " command execution permanently from the server. Any suggestion will be very much helpful .
I assume you're concerned over this so that people can't mess up your system. Actually I don't believe it's possible to do what you want for 2 reasons:
1)
rm -rf *: this command deletes all files / subdirectories that are located inside your current working directory. If the right permissions are set, a normal user will not be able to delete anything over which he doesn't have write permissions. On the other hand, I (as a normal user) should be allowed to delete the files and the directories that I own.
2)
rm -rf /: this command deletes *everything*, beginning at the root directory down to the last file / directory in the filesystem tree. Again, if you're not root, you won't be allowed to do it. Now, if you're root and still do that, you are either suicidal or up for a good punch in the face
.
So, rest assured that with the right permissions policy (everything comes down to it) your system should be safe.
If you have any further questions, do not hesitate to let us know
.