Re: sudo not respecting /etc/sudoers
On Sun, May 3, 2015 at 4:54 PM, Nicolas George <email@example.com> wrote:
> Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit :
>> No. Sorry for not being so clear. When I say `$ env` (i.e. as normal
> Do not worry, everyone forgets to check basic things from time to time.
>> 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
>> root only.
> So there you are: the problem is not with sudo, it is with the environment
> of your normal user.
> Did you close your login session and start a fresh one since you changed
I rebooted multiple times since then!
may be it's file permissions. For me
$ ls -la /etc/environment /etc/sudoers
-rw-r--r-- 1 root root 117 May 2 17:41 /etc/environment
-r--r----- 1 root root 778 May 3 16:13 /etc/sudoers
Avinash Sonawane (RootKea)