smbfs mount ignoring file_mode / dir_mode

by Wolfram Saringer  (2014-05-09)
last change: 2014-05-09

In case a mount using smbfs to mount a SAMBA share ignores the file_mode and dir_mode settings try adding the option 'nounix':

//samba-server.local.domain/home /remote-home smbfs username=sambauser,password=sambapassword,uid=localusermapping,gid=localgroupmapping,file_mode=0775,dir_mode=0775,rw,nounix 1 2

of course substituting the correct values for your configuration:
username: the remote SAMBA user account
password: the remote SAMBA password
uid: the local user to map the files to (i.e. local owner)
gid: local group to map to
file_mode, dir_mode: the modes for files resp. directories to use locally

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.