Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Nov 2001 12:07:56 +0800
From:      Kelvin Ng Chee Hoong <nchee_hoong@pacific.net.sg>
To:        David Powers <wizlord@swbell.net>, rene@xs4all.nl, questions@freebsd.org
Subject:   RE: .bash_profile not executed when su-ing?
Message-ID:  <5.1.0.14.0.20011108120332.00a56620@po.pacific.net.sg>
In-Reply-To: <001701c167fe$7783b940$6401a8c0@daveabit>
References:  <5.1.0.14.0.20011108091112.00a59340@po.pacific.net.sg>

next in thread | previous in thread | raw e-mail | index | archive | help
bash would use .profile only in home directory if  both .bash_profile and 
.bash_login are not exist . You may man bash to get more information about 
how does bash work .


At 08:38 PM 11/7/01 -0600, David Powers wrote:
>If you mean that when you su to root you do not get root's environment you
>need to do a su -
>I'm also not sure about abash but bash uses .profile
>
>-----Original Message-----
>From: owner-freebsd-questions@FreeBSD.ORG
>[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Kelvin Ng Chee
>Hoong
>Sent: Wednesday, November 07, 2001 7:14 PM
>To: rene@xs4all.nl; questions@freebsd.org
>Subject: Re: .bash_profile not executed when su-ing?
>
>
>Try to put all statement onto non-interactive script . - .bashrc
>
>
>
>At 12:19 PM 11/7/01 +0100, rene@xs4all.nl wrote:
> >Hi. I am using abash as my dfault shell, but when su-ing to another account
> >(root) it does not seem to execute ~/.bash_profile. Is htere any way to
> >remedy this?
> >
> >To Unsubscribe: send mail to majordomo@FreeBSD.org
> >with "unsubscribe freebsd-questions" in the body of the message
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011108120332.00a56620>