New answers tagged

3

Yes it is expected behaviour. I don't have a document that says it but you can see in this patch from 2007 When a file with posix capabilities is overwritten, the file capabilities, like a setuid bit, should be removed. This patch introduces security_inode_killpriv(). This is currently only defined for capability, and is called when ...


3

My El Capitan has no setattr or setxattr (the latter is the name of a C runtime function: you could make your own utility using that). OSX provides xattr, which (noting comments such as Mac OS X Extended Attributes and Xattr) seems fairly recent. A comment in Manually set extended attributes on arbitrary files from 2011 gives a hint about OSX 10.5 You can ...


0

It's called xattr on OS X . You can use setxattr to set attributes.



Top 50 recent answers are included