I would like to delete chattr, as in /usr/bin/chattr, I am using Linux Mint, do you think other parts of the system would be affected?

  • 1
    Why would you want to do this? It doesn't protect you from anything, you can still make the same calls from another program... – Chris Down Apr 26 '15 at 10:30

If for some reason you just want to prevent it from being used, you can just render it inoperable:

chmod a-x /usr/bin/chattr

I agree it's not a smart thing to remove the file.


/usr/bin/chattr is going to be owned by a core system package (on Linux Mint, e2fsprogs), and your package manager is not going to be very happy when it goes. You'll probably have to perform manual intervention on each package upgrade.

I don't think removing files from core system packages is a very good idea. These kind of packages are likely assumed to exist and be intact by default.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.