Server Fault is a question and answer site for system and network administrators. 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

Redhat 5.5, logged in as root

I created a group dev-core

groupadd dev-core

Then I create a new user tony

useradd tony

I changed tony's password and added tony to group dev-core

usermod -a -G dev-core tony

Then, I created a directory /devel

mkdir /devel

I changed it's group to dev-core

chgrp dev-core /devel

I changed the directory's permission to this

drwxrwx--- 3 root dev-core

Now, when I login as tony and try to access /devel, I get a permissions denied message.

I don't understand why, the group that tony belongs to has full access to that directory. Can anyone explain?

share|improve this question
As user tony, type id (or id tony as someone else) and report back. Also, what command do you mean by "access"? You also must login to user tony fresh AFTER making the usermod change. – Seth Robertson May 21 '11 at 20:32
when logged in as tony, what is the output of 'id'? – toppledwagon May 21 '11 at 20:33
uid=501(tony) gid=502(tony) groups=502(tony),501(dec-core) – gAMBOOKa May 21 '11 at 20:36
@Seth: I needed to login again facepalm. It works now! – gAMBOOKa May 21 '11 at 20:38
up vote 2 down vote accepted

You must login to user tony fresh AFTER making the usermod change.

share|improve this answer
Thank you seth! – gAMBOOKa May 21 '11 at 20:45

Your Answer


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.