Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Aug 2007 10:31:37 +0100
From:      Vince <jhary@unsane.co.uk>
To:        Olivier Nicole <on@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sudo clears the environment variable
Message-ID:  <46B83BF9.6040906@unsane.co.uk>
In-Reply-To: <200708070904.l7794BEO064504@banyan.cs.ait.ac.th>
References:  <200708070852.l778qAwt062574@banyan.cs.ait.ac.th>	<46B83486.3040203@unsane.co.uk> <200708070904.l7794BEO064504@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B83BF9.6040906>