Sudo clears the environment variable

Vince jhary at unsane.co.uk
Tue Aug 7 02:31:39 PDT 2007


Olivier Nicole 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.
> 

Sorry,

a line like
Defaults	!env_reset
in sudoers ought to do it or you can do it on a per user basis.
see /usr/local/share/doc/sudo/UPGRADE


Vince
> Olivier
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list