I've installed Samba on machine msc001y. I want to access it's shared folders on msc001.
Both machines have the same users (which are mirrored on Samba)
msc (5001), james (5002), rachel (5003).
Both machines have the same groups:
grp_public (2001), grp_personal (2002)
rachel all have access to
rachel have access to
chgrp -R grp_public /mnt/local/int001/media/public/ chgrp -R grp_personal /mnt/local/int001/media/personal/ chmod 2775 /mnt/local/int001/media/public/ chmod 2770 /mnt/local/int001/media/personal/
I've added to smb.conf on msc001y:
# Inherit ownership of the parent directory for new files and directories inherit owner = unix only # Inherit permissions of the parent directory for new files and directories inherit permissions = yes create mask = 0775 directory mask = 2775 force create mode = 0775 force directory mode = 2775
[public] comment = Public Stuff path = /mnt/local/int001/media/public public = yes writable = no printable = no write list = @grp_public, msc, james, rachel inherit acls = yes
Before I mount [public], the mount point lists as (ie: RWX for Owner and Group):
drwxrwxr-x 2 msc grp_public 0 Jul 25 23:07 public
Once I've mounted it, it becomes (ie: RWX for Owner, RX no W for Group):
drwxr-xr-x 2 msc grp_public 0 Jul 25 23:07 public
It is mounted with:
//msc001y/public /mnt/remote/msc001y/public cifs user,nofail,_netdev,vers=3.1.1,uid=msc,gid=grp_public,credentials=/mnt/local/data/.Credentials/james.cred 0 0
If I'm loggged in as
msc I get read-write as it's the owner, but if I'm james or rachel, I'm stuck with ReadOnly.
Why does the folder default to RX when I mount to it when it is RWX before?
Note: All files within the shared folder are RWX|RWX|R_X