Re: Setting the EDITOR environment variable for root



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

.