Re: su path hard coded?

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



On Mon, Jul 23, 2012 at 2:18 PM, Stephen Harris <lists@xxxxxxxxxx> wrote:
> On Mon, Jul 23, 2012 at 02:14:45PM -0500, Les Mikesell wrote:
>> Can't you use the usual approach of 'su -' to pick up the target
>> user's login environment?
>
> It's "su -" that causes the 'su' comman to rewrite the PATH to the
> hardcoded default.
>

But it should be executing the target user's .profile which can
override it.   '-' should be a synonym for -l or --login.

-- 
   Les Mikesell
     lesmikesell@xxxxxxxxx
_______________________________________________
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