I am trying to give 2 users rwx access to a new shared directory i have created that will hold some shared documents. The directory is /srv/shared
The 2 users are Mason and Bill that will be accessing the files. I would like both users to be able to rwx any newly created files/directories by each other.
I have added Bill to the group Mason with sudo usermod -a -G mason bill
I then changed the /srv/shared
ownership to Mason and group Mason with sudo chown mason:mason /srv/shared
I then tried creating a directory in /srv/shared
logged in as bill with mkdir /srv/shared/test
but got access denied. I tried giving the directory chmod 755 permissions but that still gave Bill access denied when creating files. When i gave chmod permissions 777 Bill could then create directories and files without an issue.
Just trying to work out what I have done wrong for this to only work with 777 permissions which is not really what i want to allow?