I think the locale PAM directive just doesn't make sense because the
user provides the sensible default. LANG unset is a sensible default
too.

Anyway, if I ever wanted to have a default value, e.g. for LANG, this is
what I'd do:

      * Set the SendEnv variables in the PAM environment before pam_env
        executes (use pam_putenv or do_pam_putenv).
      * PAM directive: pam_env.so conffile=/etc/default/locale
      * /etc/default/locale: LANG DEFAULT=#default_locale# OVERRIDE=
        ${LANG}

This way PAM still has more priority and allows SendEnv to pass through.




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to