Because .bash_profile is only seen on login, not on 'su'. Put
it in .bashrc which is read when the shell is invoked.
See 'man bash'
Patrick
Daniel Underwood presented these words - circa 4/24/09 12:43 PM->
When I am logged in as a non-root user and I try to become root by
entering "su" and ty
Hi,
> > When I am logged in as a non-root user and I try to become root by
> > entering "su" and typing the root password, the resulting bash prompt
> > does not reflect the contents of /root/.bash_profile
> Because .bash_profile is only seen on login, not on 'su'. Put
> it in .bashrc which is r
Daniel Underwood wrote:
When I am logged in as a non-root user and I try to become root by
entering "su" and typing the root password, the resulting bash prompt
does not reflect the contents of /root/.bash_profile
My /root/.bash_profile contains (among other things):
export PS1="[\e[1;31m\]$(tp
You're right. Works now. Many thanks!
On Fri, Apr 24, 2009 at 3:51 PM, Adam Vandemore wrote:
> Daniel Underwood wrote:
>>
>> When I am logged in as a non-root user and I try to become root by
>> entering "su" and typing the root password, the resulting bash prompt
>> does not reflect the contents
Daniel Underwood wrote:
When I am logged in as a non-root user and I try to become root by
entering "su" and typing the root password, the resulting bash prompt
does not reflect the contents of /root/.bash_profile
My /root/.bash_profile contains (among other things):
export PS1="[\e[1;31m\]$(tp
When I am logged in as a non-root user and I try to become root by
entering "su" and typing the root password, the resulting bash prompt
does not reflect the contents of /root/.bash_profile
My /root/.bash_profile contains (among other things):
export PS1="[\e[1;31m\]$(tput bold)\u$(tput sgr0)\[\e