Date: Wed, 12 Jun 2002 22:35:17 -0700 From: Brett Rogers <loki_bsd@cox.net> To: freebsd-questions@freebsd.org Cc: Andrew <perl@ukrpost.net> Subject: Re: Sudo Message-ID: <200206122235.17619.loki_bsd@cox.net> In-Reply-To: <1378131622.20020612235319@ukrpost.net> References: <1378131622.20020612235319@ukrpost.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206122235.17619.loki_bsd>