|
|
Subscribe / Log in / New account

Forking

Forking

Posted Oct 6, 2023 11:20 UTC (Fri) by gioele (subscriber, #61675)
In reply to: Forking by farnz
Parent article: OpenSSH 9.5 released

> Merging then happens at runtime; the software loads its built-in config, then loads the config from /usr (overwriting the built-in config where the two conflict), then loads the config from /etc (overwriting both built-in and /usr configs where the two conflict).

You stopped too early. Then the software loads the user-specific config in $HOME (overriding built-in, /usr and /etc configs). And then it loads other settings from ARGV (overriding built-in, /usr, /etc and $HOME configs).

I do not really understand how people that are used to the decades-old mechanism of ARGV overriding $HOME overriding /etc overriding built-in defaults, are now against having just another level of override in /usr (an additional level that brings many practical benefits).


to post comments

Forking

Posted Oct 6, 2023 11:22 UTC (Fri) by farnz (subscriber, #17727) [Link] (1 responses)

For the software I'm used to thinking about, there's no user-specific config (it's system-wide software, so doesn't load from $HOME), and you set argv as part of the service manager's configuration, rather than running it by hand.

Forking

Posted Oct 6, 2023 12:51 UTC (Fri) by gioele (subscriber, #61675) [Link]

> For the software I'm used to thinking about, there's no user-specific config (it's system-wide software, so doesn't load from $HOME), and you set argv as part of the service manager's configuration, rather than running it by hand.

I agree, but that does not mean that the software does not already have code in place used to merge ARGV with the built-in config values and those found in /usr.

And even system-wide software sometimes reads from $HOME-like configuration files. For example Apache has directory-specific .htaccess files, cron has user-specific crontabs.

Forking

Posted Oct 6, 2023 12:07 UTC (Fri) by gdiscry (subscriber, #91125) [Link]

And you can also add environment variables between argv and the configuration files.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds