I'm using Ubuntu 10.10 64-bit and have created a group 'dcc' to which I added myself as user 'ralc'. After logging out and back in again I tried the command 'groups' and it gives me the line:
ralc adm ... dcc
(some groups omitted)
I then created a directory 'dccdir', used chmod g=rwx dccdir; chmod u= dccdir and changed the directory group with chgrp dcc dccdir. The result from ls -l | grep dcc is as follows:
d---rwxr-x 2 ralc dcc 4096 2011-04-26 18:56 dccdir
Now for the real question: seeing that I'm in the same group as the directory, I would assume that I should be able to access and list the contents of the directory. However, when doing ls dccdir I get the message:
bash: cd: dccdir/: Permission denied
Can you explain where I'm mistaken?