0

I have a directory 'ad' with permissions: drwxrwx---, for devpro devpro

I added devst to devpro group with:

 usermod -a -G devpro devst

If I use id command for devst I get:

  devst 

If I use groups command for devst I get:

devst devpro

If I try to cd with devst in 'ad' I get permission denied.

Why this inconsistencies between 'id' and 'groups' commands, and why permission is still denied.

-- Not duplicate: I want to access the folder by ftp after, so starting a new shell doesn't work

marked as duplicate by user34720, msp9011, Fabby, Shadur, Christopher Jan 10 at 13:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I want to access the folder by ftp after, so starting a new shell doesn't help – user3541631 Jan 7 at 8:01
  • 3
    You are testing in the same shell, that's why you get the permission denied. To test you should logout and login again so that the user and group permissions get read. This has nothing to do with the ftp, as you're testing on the shell level. – Stefan M Jan 7 at 10:36