J. A. Landamore
2005-Mar-07 14:53 UTC
[Samba] Re: [linux-cifs-client] Mounting directories below share level
Many thanks for all the help with this, it looks very promising for what we are trying to do. I'm following on from this and still getting problems, probably from my own lack of knowledge. If I do: root@ma:~# mount -t smb -o username=test //time.cfs/usershare1$ /mnt Password: root@ma:~# df Filesystem 1K-blocks Used Available Use% Mounted on .. other file systems .. //time.cfs/usershare1$ 153600 1200 152400 1% /mnt root@ma:~# ls /mnt ls: /mnt: Permission denied root@ma:~# but if I do (after umount /mnt): root@ma:~# mount -t cifs -o user=test //time.cfs/usershare1$ /mnt Password: mount error 20 = Not a directory Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) root@ma:~# I don't think I'm being too blind here am I? Also, how do I specify a user to mount --bind? It appears at present to be ignoring -o user= and -o username= and trying to bind as the process doing the mount, i.e. root This leads to the olddir appearing to be readonly and not mounting (i'm playing about with this on the smb mounted directory) Many thanks for all your help with this John John Landamore School of Mathematics & Computer Science University of Leicester University Road, LEICESTER, LE1 7RH J.Landamore@mcs.le.ac.uk Phone: +44 (0)116 2523410 Fax: +44 (0)116 2523604