Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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
add comment

1 Answer

up vote 7 down vote accepted

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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