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