|Summary:||nsmb.conf(5): Hostnames in nsmb.conf seem to be ignored|
|Product:||Base System||Reporter:||Kirk Strauser <kirk>|
|Component:||conf||Assignee:||freebsd-bugs (Nobody) <bugs>|
|Severity:||Affects Only Me|
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 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