Hacker News new | ask | show | jobs
by ec109685 728 days ago
How would you do that?
2 comments

lsattr - for reading attributes chattr - for setting them

You need the `i` attribute. But this is filesystem dependent. Anyway protecting the `sudo` binary from package managers is a so-so idea.

man chattr