I'm experiencing some strange behaviour.
My sudoers file is very short and looks like this :
Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" root ALL=(ALL:ALL) ALL %admin ALL=(ALL) ALL %sudo ALL=(ALL:ALL) ALL
(Note, that's Ubuntu 13.10 with a backported 3.12 kernel)
With this sudoers, when I do
sudo env I get almost all my unprivilegied user's environnement, including
Now if I append this line to the file, the environnement gets stripped as hell :
My bet is that there is a default value for
env_keep that hold most of what's set in my environnement and that defining it without
env_keep+= erases it.
Or that's a sudo bug I should submit ?