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.

I just noticed that on Centos 4, a file's group permissions hide the other permissions if you are a member of the group. I would think they would be OR(ed) together? For example:

drwx---r-x   1 NotMe GroupIAmIn  6 Jul 28 04:51 someDirectory

If I am a member of GroupIAmIn I am unable to cd to someDirectory even though other permissions allow this.

I'm wondering why this is the current behavior (what is the motivation) and whether this is standard Linux behavior?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Because you are explicitly saying that users on that group are not allowed to have any access to that directory, anyone else has.

Permissions in Linux are very powerful and strict.

In that case the owner has complete read, write, execute permissions, others have read and execute permission but the group has explicitly no access what so ever to that directory and since your user belongs to GroupIAmIn you have no access to that directory.

This is not unique to CentOS.

share|improve this answer
    
I might be confused, but isn't he asking why he can't enter the folder even though he's actually in the group owning the folder? Where does it specify that "GroupIAmIn" does not have access? –  bigbadonk420 May 28 '13 at 7:22

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.