[CentOS] su path hard coded?

John R Pierce pierce at hogranch.com
Tue Jul 24 23:43:54 UTC 2012


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



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




More information about the CentOS mailing list