[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo not respecting /etc/sudoers

On Sun, May 3, 2015 at 4:09 PM, Nicolas George <george@nsup.org> wrote:
> Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit :
>> > 2) Move 'Defaults env_keep…' to line 12 in /etc/sudoers (i.e. *before*
>> > "User privilege escalation section")
>> Same error. Here's my updated /etc/sudoers http://paste.debian.net/170961/
> The "env_keep" directive it still at the end. Maybe you pasted the wrong
> file?

Oops. Sorry! It's http://paste.debian.net/170991

> Also: I believe you should test using env instead of apt-get:
> sudo env
> ... and see if http_proxy is still there. This would allow to distinguish
> two possible problems: sudo not keeping the environment or apt-get not using
> the environment.

When I say `# env` I can see http_proxy= but
when I say `$ sudo env` there's no http_proxy variable printed.

What's going on?

Avinash Sonawane (RootKea)
PICT, Pune

Reply to: