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
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\]$(tput
You're right. Works now. Many thanks!
On Fri, Apr 24, 2009 at 3:51 PM, Adam Vandemore amvandem...@gmail.com 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
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\]$(tput
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 read when
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