Bugzilla – Bug 570
USER env var no longer set
Last modified: 2012-09-17 05:07:52 MDT
As of 1.8.6, the USER and USERNAME env var are nolonger set when using sudo. With 1.8.5.p3-1: $ sudo env | grep USER USER=root USERNAME=root SUDO_USER=garyvdm With 1.8.6: $ sudo env | grep USER SUDO_USER=garyvdm
Created attachment 355 [details] Fix setting USER, USERNAME and LOGNAME in sudoers I've attached the fix for this. The check for duplicate environment variables was removing those in error.
I upgraded to 1.8.6.p1 from the arch linux repos today. Confirming that the bug is fixed. Thank you for the quick responce.