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

Re: /etc/init.d in the default $PATH ?



On Sat, 2007-01-27 at 16:27 -0800, Ron Johnson wrote:

> I don't modify the path on my system from the install default, but
> when logged in as root via 'su', /sbin is not in the path.  I do see
> something in /etc/profile that is apparently supposed to put it in
> there if the EUID is zero, but it never seems to happen.  I hadn't
> really thought about it much till now.  Is that a bug?  Does this
> happen to anyone else?

when you su you're not 'su -' which opens a login shell and processes
bash_profile

try it.

su
echo $PATH

su -
echo $PATH

-sv



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