When mounting samba shares using "mount -t smbfs ...", the mount point directory gets the right uid/gid settings, but the files themselves receive the uid/gid settings from the server.
Overriding this by using smbfs's uid/gid parameter has no effect - although the client script's syntax is DEFINITELY correct (was in use for ages!)
[SOLUTION]
It seems to be a problem when enabling unix extensions on the Samba server. Things "might" work when mounting the shares using cifs, but we didn't have this fs module on DevilLinux, so our solution was:
Disabling UNIX extensions on the Samba server (smb.conf):
Code: Select all
unix extensions = No
Although I'd say that this is more a workaround than a solution, get yourself some details by googleing: "samba mount wrong uid"