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

Re: Ideal place to set environment variables

On Fri, 30 Mar 2018, Greg Wooledge wrote:
> 1) ${HOME} is in fact NOT available to pam_env.conf at least for the
> ssh "application" of PAM, despite being used in the documentation.

That's why you need @{HOME}, not ${HOME}.


> In conclusion, pam_env.so still can't do either of the two things I
> actually care about (setting a variable with the user's $HOME

That's @{HOME}

> $LOGNAME in it,

That's @{PAM_USER}.

> or having a default fallback value for a variable like $LANG).

I think you want


Don Armstrong                      https://www.donarmstrong.com

Il semble que la perfection soit atteinte non quand il n'y a plus rien
a ajouter, mais quand il n'y a plus rien a retrancher.
(Perfection is apparently not achieved when nothing more can be added,
but when nothing else can be removed.)
 -- Antoine de Saint-Exupe'ry, Terres des Hommes

Reply to: