Comments on: 5 ‘chattr’ Commands to Make Important Files IMMUTABLE (Unchangeable) in Linux https://www.tecmint.com/chattr-command-examples/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 07:51:47 +0000 hourly 1 By: Rahul https://www.tecmint.com/chattr-command-examples/comment-page-1/#comment-1076156 Sun, 02 Dec 2018 10:14:28 +0000 http://www.tecmint.com/?p=9084#comment-1076156 I have one file in my server with below permissions:

# lsattr -a syshub

----i--------e-- syshub

How can I delete this?

]]>
By: Bred Floggs https://www.tecmint.com/chattr-command-examples/comment-page-1/#comment-936899 Fri, 17 Nov 2017 14:20:06 +0000 http://www.tecmint.com/?p=9084#comment-936899 In reply to Bred Floggs.

Also: Don’t add attributes to passwd or shadow – this is a bad idea. It adds nothing to security – in fact, by preventing users from changing their passwords, it actively reduces security. Interesting that one small article can get so much wrong.

]]>
By: Bred Floggs https://www.tecmint.com/chattr-command-examples/comment-page-1/#comment-936896 Fri, 17 Nov 2017 14:13:10 +0000 http://www.tecmint.com/?p=9084#comment-936896 In reply to Robin.

Also wrong about creating symlinks. I’ve not checked every bit of info, but he frankly doesn’t knwo what he’s talking about

]]>
By: Robin https://www.tecmint.com/chattr-command-examples/comment-page-1/#comment-858467 Tue, 10 Jan 2017 10:06:49 +0000 http://www.tecmint.com/?p=9084#comment-858467 Thank you for the excellent summary and examples!

There is one point I have a further question about:

Your elaboration on the “i” attribute says “no execution”

I could not find this mentioned in the man pages at https://linux.die.net/man/1/chattr

Also, I tried to run an immutable (albeit executable) script on my Linux workstation, and it works just fine.

Is it different on your system?

I believe executable files would still be executable, even if set immutable, do you agree?

]]>
By: Shashank https://www.tecmint.com/chattr-command-examples/comment-page-1/#comment-559202 Sun, 03 May 2015 12:16:45 +0000 http://www.tecmint.com/?p=9084#comment-559202 In reply to ganesh.

It indicates that the file is using extents for mapping the blocks on disk. Extents is file system dependent. You’re most likely using ext4. It may not be removed using chattr. To know more about extent, see the wikipedia page for extent(filesystem)

]]>