Originally Posted by twobob
I checked this just the other day. seems to lockout access just fine.
my only worry is the interactive way it fails. I thought it said something like
"Really delete?" which worried me that it may cause a hang if scripted.
but is that just gives "NOISY error" >2 each DIAGS boot then that would be fine
(error noted here https://www.mobileread.com/forums/sho...&postcount=161
) Worth bringing it up anyway I hope as a failed DIAGS startup script might be a bit horrible.
Check your alias list, you probably have rm aliased to 'rm=rm -i'
That is the usual source of the "really delete this?" message.
Setting '-i' on a directory may not give you the expected results.
I suppose it depends on your expectations though.
Setting '-i' on an executable file that you do not want deleted, now that does what is expected (shows even root the middle finger).
@NiLuJe: These are not actually xattr (which are name:value pairs), these are extended permissions.
Although this page (which lists file permissions) has the word "attributes" in the chattr description.
The "key" to sorting out what is what here -
"chattr" works on file systems even if the kernel does not have support for xattr optioned for that type of file system.