From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 11:13:58 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C4B016A41A for ; Tue, 7 Aug 2007 11:13:58 +0000 (UTC) (envelope-from apvanderveen@att.net) Received: from mtiwmhc11.worldnet.att.net (mtiwmhc11.worldnet.att.net [204.127.131.115]) by mx1.freebsd.org (Postfix) with ESMTP id CB51913C465 for ; Tue, 7 Aug 2007 11:13:57 +0000 (UTC) (envelope-from apvanderveen@att.net) Received: from t60.mydomain.home (cpe-72-231-141-22.nycap.res.rr.com[72.231.141.22]) by worldnet.att.net (mtiwmhc11) with ESMTP id <20070807111346111002li2ve>; Tue, 7 Aug 2007 11:13:57 +0000 Message-ID: <46B853E8.9040904@att.net> Date: Tue, 07 Aug 2007 07:13:44 -0400 From: "Arend P. van der Veen" User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: "illoai@gmail.com" References: <200708070852.l778qAwt062574@banyan.cs.ait.ac.th> <46B83486.3040203@unsane.co.uk> <200708070904.l7794BEO064504@banyan.cs.ait.ac.th> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Olivier Nicole , jhary@unsane.co.uk, freebsd-questions@freebsd.org Subject: Re: Sudo clears the environment variable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 11:13:58 -0000 illoai@gmail.com wrote: > On 07/08/07, 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. > > 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