Sudo clears the environment variable

Arend P. van der Veen apvanderveen at att.net
Tue Aug 7 04:13:58 PDT 2007


illoai at gmail.com wrote:
> On 07/08/07, Olivier Nicole <on at cs.ait.ac.th> wrote:
>>> env_reset  now seems to be on by default. you could turn it off if you
>>> need to or fiddle with the env_keep and env_check lists.
>> That's what I mean, how to turn it off.
> 
> I added the line
> 
> Defaults !env_reset
> 
> to sudoers.  You might want to put more
> restrictions on it.
> 
Hi,

After "# Defaults specification"

We added then line:

Defaults env_keep=*

Is this equivalent?

Thanks,
Arend


More information about the freebsd-questions mailing list