smbmout using ssh forwarding
nhasan at nadmm.com
Fri Dec 1 19:32:34 GMT 2000
Here is the latest. smbmount does not ignore netbios name
even if I specify the ip address using ip=xx option.
It would be great if it did. On the other hand, smbclient
does ignore the netbios name if I use -I parameter. This
is documented too in the man page for smbclient. So:
remote:~ # smbclient //smbserver/userxx -p 8004 -Uuserxx%passwd -I
added interface ip=xx.xx.xx.xx bcast=xx.xx.xx.xx nmask=255.255.255.248
Domain=[WGRP] OS=[Unix] Server=[Samba 2.0.6]
It works! The only problem is that I'll have to use smbclient
commands instead of regular file operation commands.
Thank you Steve.
Steve Langasek wrote:
> The netbios name that you use (//<netbios name>/ for smbmount, or the name
> following the -L option in smbclient) is not just used for looking up the IP
> of the SMB server, it is also passed to the server as part of the session
> setup. Not all SMB servers will respond politely if the netbios name you use
> doesn't match the one that's been declared in the server configuration. If
> the server's name is "flarn", you must call smbmount //flarn/userxx, not
> smbmount //localhost/userxx, and pass the IP 127.0.0.1 as an option. I'm not
> sure this is currently supported by smbmount; if it isn't, it would certainly
> be useful to have this support added.
> Steve Langasek
> postmodern programmer
More information about the samba-technical