[sudo-users] sudo -u & environment help

Craig R. Skinner skinner at britvault.co.uk
Mon May 26 16:40:37 MDT 2014

On 2014-05-26 Mon 16:01 PM |, Shawn McMahon wrote:
> If I'm reading the changelogs right, that $MAIL bug was fixed in
> 1.7.4. Not sure when the PATH one was fixed; I run with secure path
> everywhere. Maybe try a recent version and see if that helps.

Thanks. I didn't find anything in the change logs.

Bug 387 refers to MAIL being fixed in 1.7.4:

Bug 527 (FreeBSD "sudo -i" doesn't use variables from /etc/login.conf)
seems to be similar: http://www.sudo.ws/bugs/show_bug.cgi?id=527
which is logged as Fixed in sudo 1.8.4

Maybe that fix also covers the login.conf path & umask issues:

On systems that use login.conf, sudo -i now sets environment variables
based on login.conf.

The initial evironment created when env_reset is in effect now includes
the contents of /etc/environment on AIX systems and the "setenv" and
"path" entries from /etc/login.conf on BSD systems.

More information about the sudo-users mailing list