Subject: bin/23401: mount_smb should try server names like smbclient
To: None <>
From: Hubert Feyrer <>
List: netbsd-bugs
Date: 11/09/2003 22:28:24
>Number:         23401
>Category:       bin
>Synopsis:       mount_smb should try server names like smbclient
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jdolecek
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 09 21:29:00 UTC 2003
>Originator:     Hubert Feyrer
>Release:        NetBSD 1.6ZE
System: NetBSD miyu 1.6ZE NetBSD 1.6ZE (MIYU) #28: Sun Nov 9 00:37:13 GMT 2003 feyrer@miyu:/sys/arch/i386/compile/MIYU i386
Architecture: i386
Machine: i386
	Trying to mount a directory exported from WinXP Home, mount_smbfs(8)
	does not succeed while Samba's smbclient works.
	Export a directory from a WinXP Home machine, try to mount it:

		miyu# mount_smbfs -I // /mnt2
		mount_smbfs: unable to open connection: syserr = Connection reset by peer

	Run ethereal on the same thing with Samba's smbclient, and see it first
	try the server name "" for the SMB request, and after that
	fall back to "*SMBSERVER", which succeeds:

		miyu# mount_smbfs -I //'*SMBSERVER'/mp3s /mnt2
		miyu# ls -l /mnt2/* | wc -l

	Teach mount_smbfs(8) to try a server name of "*SMBSERVER" if the
	connection does not succeed.