did sudo change the default sense of env_reset option?

Andrew Reilly areilly at bigpond.net.au
Sat May 22 11:46:36 UTC 2010

Hi there,

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?

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.



More information about the freebsd-ports mailing list