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)
Wed, Nov 20, 6:05 PM
Unknown Object (File)
Sep 28 2024, 3:20 PM
Unknown Object (File)
Sep 24 2024, 10:06 PM
Unknown Object (File)
Sep 24 2024, 3:19 AM
Unknown Object (File)
Sep 22 2024, 10:08 AM
Unknown Object (File)
Sep 18 2024, 5:21 AM
Unknown Object (File)
Sep 15 2024, 12:15 AM
Unknown Object (File)
Sep 5 2024, 4:34 AM
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.