Page MenuHomeFreeBSD

nsmb.conf(5): Document the order of configuration loading
ClosedPublic

Authored by 0mp on Nov 1 2018, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 10, 1:32 AM
Unknown Object (File)
Wed, Apr 8, 9:42 PM
Unknown Object (File)
Mon, Apr 6, 3:08 PM
Unknown Object (File)
Sun, Mar 29, 6:17 AM
Unknown Object (File)
Sun, Mar 29, 3:05 AM
Unknown Object (File)
Mon, Mar 23, 8:33 PM
Unknown Object (File)
Mar 14 2026, 11:40 AM
Unknown Object (File)
Dec 20 2025, 2:12 PM
Subscribers

Details

Summary

Based on the comments in /etc/nsmb.conf.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Is this a mix up?

share/man/man5/nsmb.conf.5
57 ↗(On Diff #49897)

Isn't it normally the other way around: Local user settings overwrite the system-wide settings? Otherwise, why have the ones in the ~/.nsmb.conf in the first place? I don't know SMB that well, so I could be wrong here. Just wondering...

0mp marked an inline comment as done.Nov 1 2018, 11:01 PM
0mp added inline comments.
share/man/man5/nsmb.conf.5
57 ↗(On Diff #49897)

I am afraid this is what the documentation says:

sudo head -n 7 /etc/nsmb.conf
# $FreeBSD: releng/11.2/etc/nsmb.conf 263140 2014-03-14 02:58:48Z glebius $
#
# smbfs lookups configuration files in next order:
#       1. ~/.nsmbrc
#       2. /etc/nsmb.conf - if this file found it will
#          override values with same keys from user files.
#

I've got no idea why it is like this.

Hmm, OK. Their choice, so let's document it. ;-)

This revision is now accepted and ready to land.Nov 2 2018, 7:36 AM
This revision was automatically updated to reflect the committed changes.