0

I am trying to share a directory between two users. The directory is at /reports. I have created a group (addgroup reports), changed the group of the directory, changed the permissions of /reports to allow full access to groups and added the two users to that groups by the following:

mkdir /reports
addgroup reports
chgrp -R reports /reports
chmod -R 770 /reports  
usermod -a -G reports user1
usermod -a -G reports user2

As user1, running the following, I get a permission denied error.

 touch /reports/foo.txt

Running groups user1 does not show reports group, but the mapping is there in /etc/group

but I still get a permission denied error.

BuZZ-dEE
  • 14,533
ustun
  • 101

1 Answers1

0

It looks like logging out and logging in again resolved the issue.

ustun
  • 101