Public bug reported: Since the upgrade to "sudo 1.6.9p6-1ubuntu1 ", the global environment variables are not passed as global variables to sudo shell
For exemple, export http_proxy=http://foo.bar:8080/ && sudo echo $http_proxy && sudo printenv returns http://foo.bar:8080 => for echo and returns for printenv TERM=xterm LANG=fr_FR.UTF-8 DISPLAY=:0.0 COLORTERM=gnome-terminal XAUTHORITY=/home/olivier/.Xauthority HOME=/home/olivier SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root SUDO_COMMAND=/usr/bin/printenv SUDO_USER=olivier SUDO_UID=507 SUDO_GID=501 No reference to http_proxy variable. ** Affects: sudo (Ubuntu) Importance: Undecided Status: New -- Global environment variables are not global in sudo shell https://bugs.launchpad.net/bugs/162837 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs