<div dir="ltr">Hoping someone here can help me as neither my co-worker nor I are samba experts but have been forced to rely on it heavily in our current environment due to decisions made by management.<div><br></div><div>We have a series of mounts that are basically file dumps from various different offices/users that we are then sharing via samba. Despite the files on the underlying filesystem being 440 when the filesystem is mounted the files are suddenly all 555. This is obviously problematic for various reasons. In addition when we mount the ffilesystem suddenly everything shows up as owned by the mounter not whoever owns it on the underlying filesystem. e.g.:</div><div><br></div><div>on server:</div><div>-r--r----- 1 userA groupA 456 Apr 16 date.sh</div><div><br></div><div>on client:</div><div>-r-xr-xr-x 1 userB groupA 456 Apr 16 date.sh</div><div><br></div><div>where userB is the name of the user mounting the filesystem.</div><div><br>Here is the relevant part of the stanzas in smb.conf:<br>writable = yes<br>browsable = yes<br>create mask = 0644<br>directory mask = 0755<br>hide unreadable = yes<br>inherit acls = yes<br></div><div><br></div><div>and here is the mount statement being used:<br>sudo mount.cifs <server share> <mount point> -o vers=3.0,uid=<userB>,cruid<userB>,gid=<groupA>,domain=<domain>,sec=krb5<br><br><br>Anyone have any thoughts on how to fix this so that the file ownership and the permissions aren't overridden?</div><div><br></div><div>Fritz</div></div>