0

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?

  • 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
2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.