From owner-freebsd-questions Wed Nov 7 20: 1:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from scythe.pacific.net.sg (scythe.pacific.net.sg [203.120.90.37]) by hub.freebsd.org (Postfix) with ESMTP id DD1AE37B405 for ; Wed, 7 Nov 2001 20:01:35 -0800 (PST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by scythe.pacific.net.sg with ESMTP id fA841YC26155; Thu, 8 Nov 2001 12:01:34 +0800 Received: from ap_280868.pacific.net.sg ([203.208.143.98]) by smtp1.pacific.net.sg with ESMTP id fA841Yl23652; Thu, 8 Nov 2001 12:01:34 +0800 Message-Id: <5.1.0.14.0.20011108120332.00a56620@po.pacific.net.sg> X-Sender: nchee_hoong@po.pacific.net.sg X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 08 Nov 2001 12:07:56 +0800 To: David Powers , rene@xs4all.nl, questions@freebsd.org From: Kelvin Ng Chee Hoong Subject: RE: .bash_profile not executed when su-ing? In-Reply-To: <001701c167fe$7783b940$6401a8c0@daveabit> References: <5.1.0.14.0.20011108091112.00a59340@po.pacific.net.sg> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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