From owner-freebsd-questions Wed Jun 12 23:31:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fed1mtao02.cox.net (fed1mtao02.cox.net [68.6.19.243]) by hub.freebsd.org (Postfix) with ESMTP id 251C737B41E for ; Wed, 12 Jun 2002 23:31:38 -0700 (PDT) Received: from ip24_56_31_67.ph.cox.net ([24.56.31.67]) by fed1mtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020613063137.SXHZ24965.fed1mtao02.cox.net@ip24_56_31_67.ph.cox.net>; Thu, 13 Jun 2002 02:31:37 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Brett Rogers Reply-To: loki_bsd@cox.net To: freebsd-questions@freebsd.org Subject: Re: Sudo Date: Wed, 12 Jun 2002 23:31:36 -0700 X-Mailer: KMail [version 1.4] References: <1378131622.20020612235319@ukrpost.net> <200206122235.17619.loki_bsd@cox.net> In-Reply-To: <200206122235.17619.loki_bsd@cox.net> Cc: Andrew MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206122331.36195.loki_bsd@cox.net> 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 On Wednesday 12 June 2002 10:35 pm, Brett Rogers wrote: > On Wednesday 12 June 2002 01:53 pm, Andrew wrote: > > Hello list. > > > > Is there a way to force sudo read .profile? For example, I have a= n > > alias vi=3D'vim' in both root's and user's .profiles. When I run vi= as > > root being user it starts vi instead of vim. > > Quick note: > =09Default shell for root is csh which reads .login not .profile. Defa= ult > shell for most users is bash which reads .profile. (could be wrong on t= his, > but in any case, the default shell reads .profile) Just set up the alia= s in > .login for root and it should work. Sorry for the misinformation, but .login is only read by csh when it is r= un as=20 a login shell. To make changes for all csh shells, you need to put the a= lias=20 in /root/.cshrc or /root/.tchrc depending on which you are using. (echo=20 $SHELL) > > > 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