Re: su'ing not sourcing .bash_profile

2009-04-24 Thread Patrick Mahan
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

Re: su'ing not sourcing .bash_profile

2009-04-24 Thread Peter Cornelius
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

Re: su'ing not sourcing .bash_profile

2009-04-24 Thread Jon Radel
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

Re: su'ing not sourcing .bash_profile

2009-04-24 Thread Daniel Underwood
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

Re: su'ing not sourcing .bash_profile

2009-04-24 Thread Adam Vandemore
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

su'ing not sourcing .bash_profile

2009-04-24 Thread Daniel Underwood
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