Comment

Comment by Eduard

Programs should not only report where the configuration files are located, but also report how configuration options contained therein are read in:

Some programs use a "last occurrence wins" approach, while other programs (e.g. sshd) use a "first occurrence wins" approach.

Buried in https://man.freebsd.org/cgi/man.cgi?sshd_config(5) and awkwardly expressed:

"Unless noted otherwise, for each keyword, the first obtained value will be used."

That's why e.g. Debian's /etc/ssh/sshd_config ( https://salsa.debian.org/ssh-team/openssh/-/blob/debian/1%25... ) starts with

  Include /etc/ssh/sshd_config.d/*.conf
, so that custom configurations in that directory win over the distribution-provided defaults set up after this Include directive inside /etc/ssh/sshd_config.
parent Eduard 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton