On Fri, Nov 06, 2020 at 07:38:35PM +0100, Kirill Peskov wrote:

> Unfortunately manpage for login.conf does not give any example, only
> brief description:
> 
> setenv             envlist                  A list of environment
>                                             variables and associated
>                                             values to be set for the
>                                             class.

the envlist type is defined a bit further,

        -Otto


> so if I would like to set for example global variable MY_ENV=DEV for all 
> users and any login method, then what should I put here instead of XXXXXX?
> 
> default:\
>         :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin 
> /usr/local/sbin:\
>         :umask=022:\
>         :setenv=XXXXXX:\
>         :...blabla...:\
> 
> 
> 
> On 06.11.20 16:28, Todd C. Miller wrote:
> > Typically, this kind of thing is done in /etc/login.conf.
> >
> >  - todd

Reply via email to