1

I'm having difficulty with groups and permissions.

  • I have user A part of group A that manages a folder F.
  • A second user B part of group B must access folder F and its content.
  • I added user B to group A but every time B tries to access folder F gets the message saying:

    'Permission Denied'. 
    

Is this the correct way to achieve that or do I need to do something more?

I'm using CentOS 6.4.

slm
  • 369,824

1 Answers1

2

What are the permissions, ownership, and groups for folder F? These need to be set such that group A is set as the group on the folder, and the permissions need to allow members of group A access to the folder.

Example

$ ls -ld F
drwxrwxr-x 2 saml blah 4096 Nov 28 08:38 F

In the above example, directory F, notice that the group blah is set, and that the permissions are rwx for the group. This would allow any members of that group access to this directory.

Fixes

If the above isn't the case then you can adjust the permissions like so:

$ chmod g+rwx F

To change ownership:

$ chgrp blah F
slm
  • 369,824