Running as root: ================ # env|grep 10.1.1.1 http_proxy=http://10.1.1.1:3128/ ftp_proxy=ftp://10.1.1.1:3128/ https_proxy=https://10.1.1.1:3128/
Running as a normal user: ========================= $ env|grep 10.1.1.1 http_proxy=http://10.1.1.1:3128/ ftp_proxy=ftp://10.1.1.1:3128/ https_proxy=https://10.1.1.1:3128/
But doing sudo: =============== $ sudo env|grep 10.1.1.1 [NO RESULTS]
$ sudo env TERM=xterm LS_COLORS=rs=0:di=01; (...) PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin LANG=es_AR.utf8 HOME=/home/xxx DISPLAY=:0.0 XAUTHORITY=/var/run/gdm/auth-for-xxx-xxxxxx/database SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root SUDO_COMMAND=/usr/bin/env SUDO_USER=xxx SUDO_UID=1000 SUDO_GID=1000
Running as root: 10.1.1. 1:3128/ 1.1.1:3128/ /10.1.1. 1:3128/
================
# env|grep 10.1.1.1
http_proxy=http://
ftp_proxy=ftp://10.
https_proxy=https:/
Running as a normal user: ======= ======= ==== 10.1.1. 1:3128/ 1.1.1:3128/ /10.1.1. 1:3128/
=======
$ env|grep 10.1.1.1
http_proxy=http://
ftp_proxy=ftp://10.
https_proxy=https:/
But doing sudo:
===============
$ sudo env|grep 10.1.1.1
[NO RESULTS]
$ sudo env rs=0:di= 01; (...) local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ X11R6/bin /var/run/ gdm/auth- for-xxx- xxxxxx/ database /usr/bin/ env
TERM=xterm
LS_COLORS=
PATH=/usr/
LANG=es_AR.utf8
HOME=/home/xxx
DISPLAY=:0.0
XAUTHORITY=
SHELL=/bin/bash
LOGNAME=root
USER=root
USERNAME=root
SUDO_COMMAND=
SUDO_USER=xxx
SUDO_UID=1000
SUDO_GID=1000