From owner-freebsd-ports@FreeBSD.ORG Mon May 24 06:56:12 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B028106566B for ; Mon, 24 May 2010 06:56:12 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 47F148FC08 for ; Mon, 24 May 2010 06:56:12 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1OGRa4-000KsR-NS; Mon, 24 May 2010 10:56:08 +0400 From: Boris Samorodov To: Andrew Reilly References: <20100522095237.GA62670@duncan.reilly.home> Date: Mon, 24 May 2010 10:56:08 +0400 In-Reply-To: <20100522095237.GA62670@duncan.reilly.home> (Andrew Reilly's message of "Sat, 22 May 2010 19:52:37 +1000") Message-ID: <30450135@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ports@freebsd.org Subject: Re: did sudo change the default sense of env_reset option? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2010 06:56:12 -0000 Hi Andrew and All, On Sat, 22 May 2010 19:52:37 +1000 Andrew Reilly wrote: > I haven't changed my configuration recently, but I've noticed > that sudo processes have stopped inheriting my environment > variables like MAKEOBJDIRPREFIX and PORTSDIR. I read the man > page, and tried sudo -E, and that brings back the "old" > behaviour, but that implies (according to the man page) that my > sudoers file has env_reset enabled, and it just doesn't. > Hmm. Closer reading of man 5 sudoers says that env_reset is > *on* by default. This is new to me. > Hmm. More digging in man pages: I need to add > Defaults !env_reset > under the #Defaults specification line. > Any thoughts or suggestions? Seems that at least an entry at UPDATING will be good to have. > OK, so I've figured out the answer to my problem now, but since > I have seen one other post about the sudden disappearance of > MAKEOBJDIRPREFIX, and no obvious conversation about changes to > sudo, I'll post this anyway. Hope it helps someone. I was the person of that post. Sure the new sudo behaviour has not been expected. Now all is clear [to me]. Thanks a lot! -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve