> Hi all,
>> I'm trying to mount a Windows share, which I am able to browse
> successfully with smbclient, with mount.cifs. I run smbclient as follows:
>> $ smbclient //host/share$ -U user -D dir -W DOMAIN
>> -D being the remote directory changed to before the smbclient shell
> appears - this works fine.
>> I'm running mount.cifs as follows:
>> # mount.cifs //host/share$ local/ -o user=user,domain=DOMAIN
>> But I get the error "mount error 20 = Not a directory"
>> When I specify the remote directory in the share's path...:
>> # mount.cifs //host/share$/dir local/ -o user=user,domain=DOMAIN
>> ...I get "mount error 6 = No such device or address" - it's no longer a
> recognised share.
>> Is there a way to specify the remote directory in the mount.cifs
> parameters in the same manner as with smbclient?
Usually when I mount CIFS or SMB shares I use the following (provided
the correct workgroup or domain is specified in smb.conf)
mount -t smbfs -o username=user //server/share /mountpoint
Then it should prompt you for the password of the domain user specified.
Hope this helps.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!