[ILUG] CIFS mounting - can a remote directory be specified?
Robert Sweetnam
linux at sweetnam.eu
Tue Oct 31 12:00:18 GMT 2006
fuzzix wrote:
> 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?
>
> Thanks,
>
> f.
Hi,
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.
Robert
More information about the ILUG
mailing list