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

Re: Removal of upstart integration

]] Simon McVittie 

> On Thu, 05 Oct 2017 at 21:43:20 +0200, Tollef Fog Heen wrote:
> > However, if you just do the IMO more common sudo $command, you get a lot
> > more:
> > 
> > $ sudo env | wc -l
> > 87
> Is that under default configuration? My /etc/sudoers{,.d/*} don't mention
> env_reset, and "sudo env" clears most of the environment (including LESS,
> but notably not PATH).

Hmm, no, it seems like my standard setup has snuck in a !env_reset in
there somewhere.  With that removed, the environment is indeed a lot
cleaner (~similar to what I got with sudo -i).  It still leaks
XAUTHORITY, HOSTNAME, DISPLAY, TZ, LANG, which is annoying, but it's
less of a problem than what I claimed.

Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

Reply to: