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

Re: Root path question



> Naitik Shah <naitik@gamebox.net> [2003-10-04 10:47]:
>

> One possibility might be the fact that when you su, I believe
> .bashrc gets executed, and .bash_profile does not, as it isn't a
> login shell. Whereas when you login (or alternatively do: su -c
> "bash --login" ) .bash_profile gets run. So depending on the paths
> each of these set, your path could possibly vary in a login /
> non-login shell.
>

if you want to have the "full" environment, add a dash '-' after the
'su', i.e. I su to root by 'su -' to load the full environment.

wbr,
Lukas
-- 
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP?  <http://www.rawip.org>   |



Reply to: