From owner-freebsd-questions Wed Jun 12 22:35:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fed1mtao01.cox.net (fed1mtao01.cox.net [68.6.19.244]) by hub.freebsd.org (Postfix) with ESMTP id 4E7CC37B408 for ; Wed, 12 Jun 2002 22:35:19 -0700 (PDT) Received: from ip24_56_31_67.ph.cox.net ([24.56.31.67]) by fed1mtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020613053517.SLEV25007.fed1mtao01.cox.net@ip24_56_31_67.ph.cox.net>; Thu, 13 Jun 2002 01:35:17 -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 22:35:17 -0700 X-Mailer: KMail [version 1.4] References: <1378131622.20020612235319@ukrpost.net> In-Reply-To: <1378131622.20020612235319@ukrpost.net> Cc: Andrew MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206122235.17619.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 01:53 pm, Andrew wrote: > Hello list. > > Is there a way to force sudo read .profile? For example, I have an > alias vi=3D'vim' in both root's and user's .profiles. When I run vi a= s > root being user it starts vi instead of vim. Quick note: =09Default shell for root is csh which reads .login not .profile. Defaul= t shell=20 for most users is bash which reads .profile. (could be wrong on this, but= in=20 any case, the default shell reads .profile) Just set up the alias in .log= in=20 for root and it should work. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message