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.

What is the difference between chmod 777 and chmod 007? if 'others' means everyone, doesn't that strongly suggest the truth that chmod 777 = chmod 007?

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

It may suggest that, but it isn't the case.

The first digit is "owner" permissions, the second is "group" permissions - and the owner and group are viewable with ls -l, and the third is "others", which literally means those that aren't either the owner or in the group.

So 007 means that neither the owner or group members can read, write, or execute the file, while everyone else can do all three.

share|improve this answer
    
can you provide a real life example where this scenario exists (007)? Thanks –  adhg Feb 7 '13 at 23:53
1  
@adhg No :) I cannot think of a specific scenario that would need this, that couldn't be acheived through better means. –  Paul Feb 8 '13 at 0:26
add comment

If 'others' means everyone, then yes. However it does not mean that.

Very briefly it is: User, group, people_not_previous_group

share|improve this answer
add comment

No. 0007 explicitly denies access by the owner and group, regardless of the other permissions.

share|improve this answer
    
I think you meant 007 –  Jay Feb 7 '13 at 4:08
2  
@Jay: They're exactly the same. –  Ignacio Vazquez-Abrams Feb 7 '13 at 4:08
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.