5

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)?

slhck
  • 223,558
  • 70
  • 607
  • 592

1 Answers1

7

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.

Daniel Pittman
  • 3,688
  • 17
  • 15
  • 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)... – Reza Toghraee 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. – Daniel Pittman 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 – Reza Toghraee 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