mount smbfs: ignoring uid/gid

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

mount smbfs: ignoring uid/gid

Post 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"
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply