I've noticed that the default path for root on my of my vm's and servers do not include /usr/local/bin
sudo -s
echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin
Whereas normal users on the server do have /usr/local/bin
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sowen/bin
Why would root not need /usr/local in the path?
Where is the default path for a user defined?
/usr/local/sbin
and/usr/local/bin
on root's default path, but there are exceptions./usr/local/bin
and one without). And the one with/usr/local/bin
, I couldn't find where it was being set.