On a windows file share we have a user "drone" who is given read write permissions to ONLY access a subfolder "child": /SHARE/parent/child But is not given read/write access to "parent" (however is allowed to list directories).
I want to access the subfolder "child" directly from an ubuntu minimal install (server) 14.04 LTS using the "drone" user. I prefer NOT to install gvfs and all its dependencies.
This works PERFECTLY (tested from my ubuntu 14.04 desktop machine):
$ gvfs-mount smb://drone@server.domain.org/SHARE/parent/child mount_folder
This does not work for the 'drone' user (but it does work for users with r/w access to 'parent'):
$ sudo mount -t cifs //server.domain.org/SHARE/parent/child /mount_folder -o sec=ntlm,username=drone,password=secret,domain=domain,iocharset=utf8
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
It seems as though mount.cifs does permissions checking different from gvfs... is this configuable/fixable or a fundamental difference in the two programs?
Thanks!