Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How to prevent execution of "sudo rm -rf --no-preserve-root / " command?

Writer Sophia Terry

After going through this question I'm quite scared!

It's not that I don't want to use sudo rm command, but I want to inhibit the execution of the sudo rm -rf --no-preserve-root / command. If this command can ruin a motherboard, Why does it even exist ? or Why should it even exist ?

8

1 Answer

Welcome to Security Whack-A-Mole, the game where you try to enumerate ALL the ways you can get hurt, and try to wrap each one in bubble wrap. You can never win.

Rather, learn to use Unix/Linux tools, understand what your system does, and don't run scripts (or anything) you don't understand (that comes from an untrusted-for-system-upgrades source).

Your question is equivalent to "I can shoot myself in the foot, thusly. Why don't guns not automatically deflect their aim away from me?"

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy