Re: sudo not respecting /etc/sudoers
On Sun, May 3, 2015 at 4:27 PM, Nicolas George <email@example.com> wrote:
> Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit :
>> When I say `# env` I can see http_proxy=http://192.168.6.254:3128 but
>> when I say `$ sudo env` there's no http_proxy variable printed.
>> What's going on?
> I assume that you checked that "env" without "sudo" shows http_proxy?
No. Sorry for not being so clear. When I say `$ env` (i.e. as normal
user) it doesn't show http_proxy. As if /etc/environment is not
available to normal user. I wonder why? (I checked file permissions
they are 0644)
When I say `# env` (i.e. as root user) I can see `http_proxy`,
`https_proxy` and `ftp_proxy` as if /etc/environment is available to
Then when I say `$ sudo env` again I couldn't see any of the
`http_proxy`, `https_proxy` or `ftp_proxy`
> If so, now, we know for sure that the problem is in sudo. The next test I
> would suggest would be to have a single name in the "keep +=" directive:
> Defaults env_keep += http_proxy
> and see if it changes something.
> To Juha Heinanen: obviously your installation can access external HTTP sites
> without a proxy.
> Nicolas George
Avinash Sonawane (RootKea)