Subject: bin/37219: mount_smbfs not working for simple shares
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <acruhl@gmail.com>
List: netbsd-bugs
Date: 10/26/2007 07:40:00
>Number:         37219
>Category:       bin
>Synopsis:       mount_smbfs not working for simple shares
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 26 07:40:00 +0000 2007
>Originator:     Andy Ruhl
>Release:        4.0_RC3/i386
>Organization:
>Environment:
NetBSD vmware 4.0_RC3 NetBSD 4.0_RC3 (GENERIC) #0: Tue Oct 16 01:14:06 PDT 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RC3/i386/200710160011Z-obj/home/builds/ab/netbsd-4-0-RC3/src/sys/arch/i386/compile/GENERIC i386
>Description:
mount_smbfs not working for simple FAT32 share. The devices I am trying to mount are simple NAS machines: D-Link GSM-D600 and Vantec Nexstar LX.

FreeBSD (actually PCBSD) works fine:

pcbsd# ls /marvin
pcbsd# mount_smbfs -I 192.168.1.14 //guest@samba/andy /marvin
Password:
pcbsd# mount | grep -i marvin
//GUEST@SAMBA/ANDY on /marvin (smbfs)
pcbsd# ls /marvin
GSM-D600        backups        video

NetBSD 4.0_RC3 fails (I do not know if this ever worked on any release):

netbsd# ls /marvin
netbsd# mount_smbfs -I 192.168.1.14 //guest@samba/andy /marvin
Password:
mount_smbfs: unable to open connection
mount_smbfs: mount error for /marvin: Socket is not connected
netbsd# ls /marvin
netbsd# mount | grep -i marvin
netbsd#

>How-To-Repeat:
netbsd# mount_smbfs -I 192.168.1.14 //guest@samba/andy /marvin

This seems to only fail when done against a simple, old style win95 share. I can mount another NetBSD machine using samba just fine with mount_smbfs.
>Fix:
None.