[linux-cifs-client] Mounting directories below share level

J. A. Landamore jal at mcs.le.ac.uk
Mon Mar 7 14:52:55 GMT 2005


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 at ma:~# mount -t smb -o username=test //time.cfs/usershare1$ /mnt
Password: 
root at ma:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
.. other file systems ..
//time.cfs/usershare1$
                        153600      1200    152400   1% /mnt
root at ma:~# ls /mnt
ls: /mnt: Permission denied
root at ma:~#

but if I do (after umount /mnt):

root at 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 at 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 at mcs.le.ac.uk
Phone: +44 (0)116 2523410       Fax: +44 (0)116 2523604




More information about the linux-cifs-client mailing list