From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 09:32:36 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 237F716A418 for ; Tue, 7 Aug 2007 09:32:36 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id A23A813C46A for ; Tue, 7 Aug 2007 09:32:35 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1921252fka for ; Tue, 07 Aug 2007 02:32:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CaJzmgJT25Gla7NWWaxrHZOWO7lhqa98MA3ltXE/X3pw9gux3Y3rAPAx1X+mT/ZjLujjb4sV4xslHtvx/oRbJwgHuTHk4lUAzJ1cA40fUGa+GaKbKID03qCMwoWq3wWiZwGazDvFcim1KKI0+Ad5Ncm98oVgiwWvDrgN0Lq51Zc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TsIrf1k2H//lpA/5QVILoWy4n6K5izOpilt7siZThof+2BtbyaZuBC2sY5loUvfQ71pD7m71fDFRMuysOmGlensUzNMd9iAXM4FJLnACmt6rXJKonSAybvBGBPh+nHRx7HCUdbzQPYqg1RI6bz4Pi8hyMlJ+sE6wn2Ko7WYKig8= Received: by 10.82.181.10 with SMTP id d10mr6499055buf.1186479154528; Tue, 07 Aug 2007 02:32:34 -0700 (PDT) Received: by 10.82.185.5 with HTTP; Tue, 7 Aug 2007 02:32:34 -0700 (PDT) Message-ID: Date: Tue, 7 Aug 2007 04:32:34 -0500 From: "illoai@gmail.com" To: "Olivier Nicole" In-Reply-To: <200708070904.l7794BEO064504@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200708070852.l778qAwt062574@banyan.cs.ait.ac.th> <46B83486.3040203@unsane.co.uk> <200708070904.l7794BEO064504@banyan.cs.ait.ac.th> Cc: 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 09:32:36 -0000 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. -- --