View Single Post
Old 10-23-2012, 01:34 PM   #164
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
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.
http://linux.die.net/man/2/listxattr

Although this page (which lists file permissions) has the word "attributes" in the chattr description.
http://linux.die.net/Linux-CLI/file-permissions.html

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.
knc1 is offline   Reply With Quote