On macs you have the option of locking a file in order to prevent its deletion. But this is not done by chmodding u-w or something like that, because locked files can have write permissions. So what's the mechanism by which file locking is implemented?

link|improve this question
feedback

1 Answer

It's through the chflags command, the counterpart to chattr.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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