1 |
On 2010-09-07 21:48, Mick wrote: |
2 |
> Just updated and noticed that the edict: |
3 |
> |
4 |
> #Reset environment by default |
5 |
> Defaults env_reset |
6 |
> |
7 |
> is no longer in /etc/sudoers. |
8 |
> |
9 |
> A load of other (commented out) environment incantations were added. What is |
10 |
> the importance of this? Do I need env_reset? |
11 |
|
12 |
From man sudoers: |
13 |
env_reset |
14 |
|
15 |
If set, sudo will reset the environment to only contain the |
16 |
LOGNAME, MAIL, SHELL, USER, USERNAME and the SUDO_* variables. Any |
17 |
variables in the caller's environment that match the env_keep and |
18 |
env_check lists are then added. The default contents of the |
19 |
env_keep and env_check lists are displayed when sudo is run by root |
20 |
with the -V option. If the secure_path option is set, its value |
21 |
will be used for the PATH environment variable. This flag is on by |
22 |
default |
23 |
|
24 |
HTH |
25 |
|
26 |
Best regards |
27 |
|
28 |
Peter K |