From owner-freebsd-questions Tue Jan 9 20:11:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from www.tntpro.com (159-128.suscom-maine.net [207.5.159.128]) by hub.freebsd.org (Postfix) with ESMTP id 95F8F37B400 for ; Tue, 9 Jan 2001 20:11:09 -0800 (PST) Received: from tony (tony.tntpro.com [192.168.0.10]) by www.tntpro.com (8.11.1/8.9.3) with SMTP id f0A4Avr66073; Tue, 9 Jan 2001 23:10:58 -0500 (EST) (envelope-from tony@tntpro.com) Message-ID: <008d01c07abb$53bf68a0$0a00a8c0@tntpro.com> From: "tony" To: "Robert Myers" , "'jason'" , References: <000601c07ab8$27136ed0$0201a8c0@ccrider2k> Subject: Re: su su Date: Tue, 9 Jan 2001 23:10:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just do su - ----- Original Message ----- From: "Robert Myers" To: "'jason'" ; Sent: Tuesday, January 09, 2001 10:48 PM Subject: RE: su su > > I am sure this is probably asked a million times a day, and I am most > > likely overlooking something, since I am an idiot. > > > > however, I will still ask the question (since I am an idiot) when > > I login, > > I use a regular account then su when I need to modify things as root. > > Problem is, when I do su, I get this annoying environment prompt: > > > > Well, I doubt your an idiot, you did ask when you got into something > you did not know, I know lots of people who would fail forever than ask for > help, now those guys are idiots.... > > > su-2.04# ..I use bash, and my .profile reflects the correct PS1 info, > > so I don't know what the hell to do.. thanks for any help, if you so > > desire. > > OK. Bash only sources (executes) the .profile when called from login. > > When you are su'ing you are not invoking bash from the login, but > interactively. > When you invoke bash after you are logged in, i.e. from screen or su, bash > looks at > .bashrc > > What I usually do, is something like this: > > in ~/.bash_profile: > > source ~/.bashrc > > then put all of my PS1 and 2 nonsense in my .bashrc along with all of the > other noise > that is associated with that. :) > > Hope that helps. > > Robert Myers > Systems Administrator > White Rose Internet Service > http://whiterose.net > (717)439-1478 > > > > 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