On Sun, Apr 20, 2025 at 10:32:37 +0700, Max Nikulin wrote:
P.S. DotFiles does not mention that PATH may be set through /etc/login.defs.
I don't think this is true; it changed in Debian 10 when the shadow-utils
suite was dropped in favor of util-linux.
hobbit:~$ man login.defs
[...]
BUGS
Much of the functionality that used to be provided by the shadow
password suite is now handled by PAM. Thus, /etc/login.defs is no
longer used by passwd(1), or less used by login(1), and su(1). Please
refer to the corresponding PAM configuration files instead.
# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
# If unspecified, some arbitrary (and possibly incorrect) value will
# be assumed. All other items are optional - if not specified then