I've been trying to set up a shared folder to store some files for a group of people, for example
/home/project. At the moment, I've done the following:
Created a group, let's call it "members", and added two users, user1 and user2.
When I run
cat /etc/group I get the following return:
Which at least seems to be correct. Then I create the directory and addign permissions following, to be honest, some internet guides.
mkdir /home/project sudo chown -R root.members /home/project sudo chmod 775 /home/project sudo chmod 2775 /home/project
All of that seems to go fine, but when I create a test text file as user2, user1 can read that file, but doesn't have write permissions. What am I doing wrong?