Here's an example

drwxr-xr-x+  6 reza reza        204 Mar  5 20:23 .ssh/

Although I am the owner of this directory, I cannot modify it without using sudo!

Why is that? how can I remove '+' here (assuming that is the problem)?

  • 1
    In the future, please don't cross-post across multiple Stack Exchange sites. Thank you!
    – slhck
    Mar 10 '12 at 21:44
  • 1
    If it's a MacOS question, please tag appropriately.
    – krlmlr
    Mar 11 '12 at 0:16

The + is an indicator that there is an extended file ACL applied to that file.

On Linux you want getfacl(1) to read that, and my guess is that the ACL is what blocks your access to modify the directory.

On MacOS you want chmod(1), which has an extended command-line language to get and set ACL entries on files.

  • You're right that it's related to ACL. But i'm running Mac OS X 10.6 and getfacl or setfacl are not available (as well as chmod -N)... Mar 10 '12 at 19:15
  • I completely didn't consider the platform; added those details to the comment, but chmod readsecurity and writesecurity are the tools instead. Mar 10 '12 at 19:21
  • actually the -N in chmod is invisible to all users (including sudoers for the exception of 'root' user... Thanks for the help though Mar 10 '12 at 20:18
  • 1
    The plus stands for ACLs as noted above, but you may need to use chattr as well.
    – Not a Name
    Mar 10 '12 at 20:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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