Date: Wed, 6 Aug 2008 15:41:03 GMT From: Kirk Strauser <kirk@daycos.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/126305: Hostnames in nsmb.conf seem to be ignored Message-ID: <200808061541.m76Ff3Us001760@www.freebsd.org> Resent-Message-ID: <200808061550.m76Fo1n3045220@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126305 >Category: kern >Synopsis: Hostnames in nsmb.conf seem to be ignored >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 06 15:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Kirk Strauser >Release: 7-STABLE >Organization: The Day Companies >Environment: FreeBSD athena.daycos.com 7.0-STABLE FreeBSD 7.0-STABLE #3: Wed Jul 23 15:24:38 CDT 2008 root@minerva.daycos.com:/usr/obj/usr/src/sys/MINERVA amd64 >Description: I have an entry in /etc/fstab to mount a Windows share: //kirk@tiffsrv/vdrive /mnt/tiffsrv/vdrive smbfs rw,noexec 0 0 For whatever reason, mount_smbfs can't resolve that address (although smbclient can): # mount /mnt/tiffsrv/vdrive mount_smbfs: can't get server address: syserr = Operation timed out So, I added an entry to /etc/nsmb.conf like so, following the example in the "[FSERVER]" block: [TIFFSRV:KIRK] password=mypassword addr=tiffsrv.office.daycos.com I still get the same error: # mount /mnt/tiffsrv/vdrive mount_smbfs: can't get server address: syserr = Operation timed out If I hardcode the hostname into /etc/fstab, though, it works as expected: //kirk@tiffsrv/vdrive /mnt/tiffsrv/vdrive smbfs rw,noexec,-Itiffsrv.office.daycos.com 0 0 I don't know whether this is a problem with the documentation for nsmb.conf or with mount_smbfs, but the end result is that it doesn't work as stated. >How-To-Repeat: >Fix: Use the "-I" option to mount_smbfs to specify the address. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808061541.m76Ff3Us001760>