From owner-freebsd-ports@FreeBSD.ORG Thu Jun 30 21:11:38 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91051065674 for ; Thu, 30 Jun 2011 21:11:38 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id 9872C8FC17 for ; Thu, 30 Jun 2011 21:11:38 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id EEC4A20722; Thu, 30 Jun 2011 23:11:32 +0200 (CEST) Message-ID: <4E0CE680.4010909@FreeBSD.org> Date: Thu, 30 Jun 2011 23:11:28 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Matthew Pounsett References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org Subject: Re: sudo always_set_home permanently set? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2011 21:11:38 -0000 On 2011-06-30 22:28, Matthew Pounsett wrote: > > I'm having an issue with the sudo port.. always_set_home seems to be on by default (contrary to the documentation), and I can't get it to turn off. I don't see any patches related to this in the port's files directory, so I'm at a loss as to the cause. What am I missing? > >> sudo -V > Sudo version 1.7.4p4 > >> sudo grep set_home /usr/local/etc/sudoers > Defaults !always_set_home > Defaults !set_home > >> sudo env | grep HOME > HOME=/root First your sudo is a little bit outdated actual version is sudo-1.8.1_5. Make sure you have the following line in sudoers Defaults env_keep += "HOME" If you started with your sudoers long time ago compare it with the example file, there are many changes.