Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 10:56:08 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Andrew Reilly <areilly@bigpond.net.au>
Cc:        ports@freebsd.org
Subject:   Re: did sudo change the default sense of env_reset option?
Message-ID:  <30450135@bb.ipt.ru>
In-Reply-To: <20100522095237.GA62670@duncan.reilly.home> (Andrew Reilly's message of "Sat, 22 May 2010 19:52:37 %2B1000")
References:  <20100522095237.GA62670@duncan.reilly.home>

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



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