Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2011 23:11:28 +0200
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        Matthew Pounsett <matt@conundrum.com>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: sudo always_set_home permanently set?
Message-ID:  <4E0CE680.4010909@FreeBSD.org>
In-Reply-To: <D0B8A7E3-D8BF-4254-B951-A3941A814BDA@conundrum.com>
References:  <D0B8A7E3-D8BF-4254-B951-A3941A814BDA@conundrum.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E0CE680.4010909>