Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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? – pzkpfw May 28 '13 at 7:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .