This is a discussion on Setting the EDITOR environment variable for root within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I am using Solaris 9 and am trying to set the EDITOR environment variable for the root user (and ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am using Solaris 9 and am trying to set the EDITOR environment variable for the root user (and for everyone else for that matter) so that I can edit crontab files. Soalris defults to the horrible ed editor (why?) and I would prefer to use vi. I've seen people say to edit the /etc/profile file but I don't know excatly what to add to make it work, and since this is a production machine that we host for a College, I don't want to go off half-cocked and break something. Any help is appreciated. Thanks |
| |||
| Hi Mutts, to set root profile you need edit /.profile this is the root profile... /etc/profile it's a common profile for all users. try add this at end in /.profile # vi /.profile .... .... EDITOR=vi export EDITOR TERM=vt100 export TERM if you use bash export EDITOR=vi export TERM=vt100 and then exit and relogin again... SalU2, Mariano mutts ha escrito: > I am using Solaris 9 and am trying to set the EDITOR environment > variable for the root user (and for everyone else for that matter) so > that I can edit crontab files. Soalris defults to the horrible ed > editor (why?) and I would prefer to use vi. > > I've seen people say to edit the /etc/profile file but I don't know > excatly what to add to make it work, and since this is a production > machine that we host for a College, I don't want to go off half-cocked > and break something. > > Any help is appreciated. > > Thanks |
| |||
| Thats what I needed, thanks a lot Germen wrote: > Hi Mutts, to set root profile you need edit /.profile this is the root > profile... /etc/profile it's a common profile for all users. > > try add this at end in /.profile > > # vi /.profile > ... > ... > EDITOR=vi > export EDITOR > TERM=vt100 > export TERM > > if you use bash > > export EDITOR=vi > export TERM=vt100 > > and then exit and relogin again... > > SalU2, > > Mariano > > > mutts ha escrito: > > > I am using Solaris 9 and am trying to set the EDITOR environment > > variable for the root user (and for everyone else for that matter) so > > that I can edit crontab files. Soalris defults to the horrible ed > > editor (why?) and I would prefer to use vi. > > > > I've seen people say to edit the /etc/profile file but I don't know > > excatly what to add to make it work, and since this is a production > > machine that we host for a College, I don't want to go off half-cocked > > and break something. > > > > Any help is appreciated. > > > > Thanks |
| |||
| Words to the wise, "Germen" <mariano.obarrio@gmail.com> wrote: >and then exit and relogin again... doesnt "source .profile" work in this case? -- Claus Dragon <clauskick@mpsahotmail.com> =(UDIC)= d++ e++ T-- K1!2!3!456!7!S a27 "Coffee is a mocker. So, I am going to mock." - Me, lately. |
| |||
| Hi Claus, the .profile is only read after login...but if you need use the changes in that moment execute ". /.profile" for root profile. Mariano Claus Dragon ha escrito: > Words to the wise, "Germen" <mariano.obarrio@gmail.com> wrote: > > > >and then exit and relogin again... > > doesnt "source .profile" work in this case? > -- > Claus Dragon <clauskick@mpsahotmail.com> > =(UDIC)= > d++ e++ T-- > K1!2!3!456!7!S a27 > "Coffee is a mocker. So, I am going to mock." > > - Me, lately. |
| |||
| Germen wrote: > Hi Claus, > > the .profile is only read after login...but if you need use the > changes in that moment execute ". /.profile" for root profile. > > Mariano > > Claus Dragon ha escrito: > > > Words to the wise, "Germen" <mariano.obarrio@gmail.com> wrote: > > > > > > >and then exit and relogin again... > > > > doesnt "source .profile" work in this case? > > -- > > Claus Dragon <clauskick@mpsahotmail.com> > > =(UDIC)= > > d++ e++ T-- > > K1!2!3!456!7!S a27 > > "Coffee is a mocker. So, I am going to mock." > > > > - Me, lately. "source" is only used in csh ( maybe tcsh as well but I don't know ) |
| |||
| On Wed, 09 Aug 2006 06:21:58 -0700, slackware guy wrote: > > Dave Uhring wrote: >> On Tue, 08 Aug 2006 14:15:44 -0700, slackware guy wrote: >> >> > "source" is only used in csh ( maybe tcsh as well but I don't know ) >> >> Wrong. > > Elaborate man bash source filename [arguments] |
| ||||
| Dave Uhring wrote: > On Wed, 09 Aug 2006 06:21:58 -0700, slackware guy wrote: > > > > > Dave Uhring wrote: > >> On Tue, 08 Aug 2006 14:15:44 -0700, slackware guy wrote: > >> > >> > "source" is only used in csh ( maybe tcsh as well but I don't know ) > >> > >> Wrong. > > > > Elaborate > > man bash > > source filename [arguments] So this means the source manpage is incomplete because it does not mention bash or tcsh. How are these pages updated? |
| Thread Tools | |
| Display Modes | |
|
|