Bug 126305 - nsmb.conf(5): Hostnames in nsmb.conf seem to be ignored
Summary: nsmb.conf(5): Hostnames in nsmb.conf seem to be ignored
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 16:50 UTC by Kirk Strauser
Modified: 2017-12-31 22:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Strauser 2008-08-06 16:50:01 UTC
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.

Fix: 

Use the "-I" option to mount_smbfs to specify the address.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:36 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped