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='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: Default shell for root is csh which reads .login not .profile. Default shell for most users is bash which reads .profile. (could be wrong on this, but in any case, the default shell reads .profile) Just set up the alias in .login 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>
