[linux-cifs-client] mounting subdirectory under a share

Andreas Mahling (extern) andreas.mahling at kvberlin.de
Mon Nov 12 16:04:23 GMT 2007


hello,
after changing my workstation installation from Debian sarge using smbfs
to openSUSE 10.3 using cifs, I've got an interesting behaviour when I
tried to cifs-mount a subdirectory under a share on a Windows 2003 box.
On the shared directory, the user 'xyz' does not own any rights. The
directory 'xyz' one level beneath the root dir contains his home, on
which he has full access.

With smbfs the setup above works without any problem
# smbmount //w2003/home/xyz /mnt -o rw,username=xyz

Now,
# mount -t cifs //w2003/home/xyz /mnt -o rw,user=xyz
fails with 'mount error 20 = Not a directory'

Playing around with access rights at the server box I discovered, that
the cifs user needs the 'read attributes' right on the shared directory
for a successful operation. But only when the file server runs Windows
2003 Server, on XP Pro the 'read attributes' right is not necessary.

cifs rpm => cifs-mount-3.0.26a-3,
uname -r =>  2.6.22.9-0.4-default

-- 
With best regards

Andreas Mahling


More information about the linux-cifs-client mailing list