Page 1 of 1

mount smbfs: ignoring uid/gid

Posted: Fri Oct 27, 2006 11:28 am
by ^rooker
[PROBLEM]
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
...in the global section.

Although I'd say that this is more a workaround than a solution, get yourself some details by googleing: "samba mount wrong uid"