Re: su path hard coded?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux