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.

My distribution is the latest Gentoo. I have a directory called music which belongs to qdii:commun and which octal access rights are "2070", that is: all permissions are granted to the group (commun), but none to the user (qdii).

Last element: qdii belongs to commun.

qdii@ks396822 ~/commun $ chmod g+wrxs music/
qdii@ks396822 ~/commun $ cd music/
-bash: cd: music/: Permission denied

What’s happening?

EDIT:

qdii@ks396855 ~/commun $ ls -l
total 4
d---rws--- 2 qdii commun 4096 Jun 10 20:26 music
qdii@ks396855 ~/commun $ cd music/
-bash: cd: music/: Permission denied
qdii@ks396855 ~/commun $ groups qdii
wheel commun qdii
share|improve this question
2  
Post the output of the commands that prove your assumptions. –  Ignacio Vazquez-Abrams Jun 10 '12 at 20:00
    
@IgnacioVazquez-Abrams: here you are. I understand your request, but I have checked multiple times that I did not make a rookie mystake :) –  qdii Jun 10 '12 at 20:38
add comment

1 Answer

up vote 4 down vote accepted

The user permissions have higher priority than the group permissions. Otherwise, it would not be possible to create a file that only the owner can access, but the group can not.

share|improve this answer
    
Yet, it's confusing : being the owner of that directory here, prevents me from opening it. If it had been owned by anyone else, I would be able to open it. –  qdii Jun 10 '12 at 20:31
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.