From owner-freebsd-questions Thu Apr 26 0: 5:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pine.senet.com.au (pine.senet.com.au [203.34.34.5]) by hub.freebsd.org (Postfix) with ESMTP id 3B88937B423 for ; Thu, 26 Apr 2001 00:05:33 -0700 (PDT) (envelope-from valex@senet.com.au) Received: from localhost (valex@localhost) by pine.senet.com.au (8.11.1/8.11.1) with ESMTP id f3Q79A052191; Thu, 26 Apr 2001 16:39:10 +0930 (CST) (envelope-from valex@senet.com.au) X-Authentication-Warning: pine.senet.com.au: valex owned process doing -bs Date: Thu, 26 Apr 2001 16:39:10 +0930 (CST) From: Alex Wilkinson Reply-To: Alex.Wilkinson@senet.com.au To: Chris Aitken Cc: questions@FreeBSD.ORG Subject: Re: keeping aliases after su In-Reply-To: <5.0.2.1.2.20010426164159.01cf6230@mail.ideal.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG su - -aw On Thu, 26 Apr 2001, Chris Aitken wrote: > Hi > > Got a quick question. > > I have 2 FreeBSD boxes which are confusing me. > > The first box is FreeBSD 3.4 and when I telnet in, I run bash as my shell > and have an alias that loads up perfectly when I log in. Then I su and the > alias follows me. > > Problem is, the other box also FreeBSD 3.4 and I also run bash and have the > same alias set which works perfectly. But when I su all my aliases are > lost. The only way I can get them back is by sourcing my .profile > > Is there something in the root setup or my personal setup that will take my > aliases with me after I su ? > > > Thanks > > > Chris > > > > > -- > Chris Aitken - Webmaster/Database Designer - IDEAL Internet > email: chris@ideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890 > -------------------------------------------- > > Unix -- because a computer's a terrible thing to waste! > > > 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