[sudo-users] sudo crontab -e gives me ED instead of vi

Galen Johnson Galen.Johnson at sas.com
Tue Jan 29 10:43:46 EST 2008

We had a similar issue primarily with solaris containers (normal
installs of sol 10 seemed unaffected).  We had to set the env_reset to
false in our config file...the more interesting problem we've run into
is an interaction with sudo and su.  We have a postgres startup script
that exports the LD_LIBRARY_PATH as part of the script yet the su
command within it fails to pick up the setting.

We've had to add the path variable to the actual su command for it to be
affective.  I suspect this has more to do with how Solaris handles
containers and super user privs than sudo itself but I can't get our IT
guys to talk with Sun about it.


-----Original Message-----
From: sudo-users-bounces at courtesan.com
[mailto:sudo-users-bounces at courtesan.com] On Behalf Of Todd C. Miller
Sent: Tuesday, January 29, 2008 8:17 AM
To: John.Hallman at wellsfargo.com
Cc: sudo-users at sudo.ws
Subject: Re: [sudo-users] sudo crontab -e gives me ED instead of vi

In message
<A89EE682D387824BA8B260A0A137FBCE1ADAD5 at msgswbiadsm28.wellsfargo.com
	so spake  (John.Hallman):

> Anyone come across not being able to sudo crontab -e?

What does "sudo printenv | egrep '(VISUAL|EDITOR)' display?
You may need to add a line like the following to /etc/sudoers

Defaults	env_keep+="VISUAL EDITOR"

 - todd
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list