On Sun, Sep 22, 2024 at 09:16:18PM +0200, Marc Haber wrote: > On Fri, Apr 05, 2024 at 06:34:52AM +0000, sohom wrote: > > Given this, itt would be great if `DEBIAN_FRONTEND` could be added to > > sudo's env > > whitelist for debian so that it could be passed to apt. > > I understand the issue, but I am not sure whether we should really add > one-by-one environment variable to the default configuration. What do > other people think about that? I would like to hear more opinions before > the change is made.
I was gonna say that I doubt sudo should allow a wide list of environment variables by default, until I saw the output of sudo -V (as root). Given the existing lists there, one would at least have to classify any new environment variable into one of the existing groups. ISTM variables that effectively change the behaviour of programs, apart from (hopefully) inconsequential display differences (color, language), should however go into the default list of env vars to *remove*, not to *preserve*. Chris