DEV Community

loading...

Discussion on: 9 Evil Bash Commands Explained

Collapse
ehxv1 profile image
ehx-v1

I wonder if 7. is actually that bad. If everyone can do everything everywhere, you (being a user among everyone) should have write access to everything as well, in particular all access properties, so you can set everything back to what it's supposed to be, although admittably you'll be busy for a while. The only risk is if you have some background process that messes with everything it gets access to, which is unlikely on a Linux and not sure if the command works under WSL.

For 8, I don't really see how it would hurt if root owns everything. Isn't that even a common pattern on certain server types?

I'm surprised that 9 is a thing, would've expected fsck to be smart enough to keep encryption apart from an actual mess (although arguably, it can be considered such in case of a ransomware attack, but that's nothing that can be fixed automatically anyway).