On 07/24/12 4:33 PM, Stephen Harris wrote:
I want the ability to "set the default path". That's all. Just so that when I do "su - foobar" then the path defaults to /bin:/usr/bin. If foobar wants to add /usr/local/bin then foobar decides. If I decide I want the default path to be /myspecial/bin:/bin:/usr/bin (so that all my users get this, by default) then I can.
Just "set the default path". Nothing more, nothing less.
set it in /etc/profile then. that gets run on su -l $someuser