why is /usr/sbin not in root's path?
by cmk77 from LinuxQuestions.org on (#6M5Q4)
I've been using debian bullseye for a while now and noticed that /usr/sbin is not by default in root's path, contrary to other distros. This leads some (third-party) scripts to fail, for instance because they cannot find ldconfig. What, if any, would be the reason debian ommits /usr/sbin from root's path?
Code:$ whoami
root
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
$
Code:$ whoami
root
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
$