Subject: su not picking up path and aliases
From: Dave
Date: 9/14/2007 12:46:28 PM
Hello,
I've got an issue with an Enterprise4 box. I've logged on as a normal
user and su-d to root. In root's .bash_profile file i have a PS1 entry,
which is taken, but in the same file i also have a PATH addition which is
not. Additionally a root-specific alias in .bashrc isn't working ootb
either. I have to run source ~/.bash_profile and source ~/.bashrc to get
these changes in to the environment. Any suggestions?
Thanks.
Dave.
Subject: su not picking up path and aliases
From: Dave
Date: 9/15/2007 3:38:35 PM
Hi,
Thanks, i was only using su switching to su - fixed the issue.
Dave.
"Joe Zeff" <the.guy.with.the.sideburns@lasfs.info> wrote in message
news:ftole354nq5thekcng24p3pv9jttdapb95@4ax.com...
> On Fri, 14 Sep 2007 12:46:28 -0400, "Dave" <dmehler26@woh.rr.com>
> wrote:
>
>>Hello,
>> I've got an issue with an Enterprise4 box. I've logged on as a normal
>>user and su-d to root. In root's .bash_profile file i have a PS1 entry,
>>which is taken, but in the same file i also have a PATH addition which is
>>not. Additionally a root-specific alias in .bashrc isn't working ootb
>>either. I have to run source ~/.bash_profile and source ~/.bashrc to get
>>these changes in to the environment. Any suggestions?
>>Thanks.
>>Dave.
>>
>
> Are you using "su -" or just su? One of them, I *think* the first,
> does a complete login, including your ending up in root's home
> directory, the other just changes your userID. Check with man to be
> sure.
>
> --
> Joe Zeff
> The Guy With the Sideburns
>
> --
> Joe Zeff
> The Guy With the Sideburns
> Kill as many as you can; I have a morbid love of excess.
> http://www.lasfs.info http://www.zeff.us
> http://www.lasfs.info http://www.zeff.us
|