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