On Sun, Nov 12, 2006 at 12:27:12PM +0300, Peter Volkov (pva) wrote: > work[3,4] (yes... if EDITOR is not set). But EDITOR *is not* set when > program is started from sudo because sudo for security reasons drops > environment (are there any other cases when environment is dropped?).
You can set `Defaults env_keep=EDITOR` in your sudoers file if you want, or what I do is `Defaults:%wheel !env_reset`, to allow users in group wheel to use sudo without the environment being scrubbed. Thanks, Tavis. -- ------------------------------------- [EMAIL PROTECTED] | finger me for my pgp key. -------------------------------------------------------
pgpDWFMPiMc5m.pgp
Description: PGP signature