From 73bdfac8c091492f466342feb8f2f5daa2f4c39b Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 25 Mar 2015 14:49:46 +0100 Subject: pam_env: expand @{HOME} and @{SHELL} and enhance documentation (Ticket#24 and #29) * modules/pam_env/pam_env.c: Replace @{HOME} and @{SHELL} with passwd entries * modules/pam_env/pam_env.conf.5.xml: Document @{HOME} and @{SHELL} * modules/pam_env/pam_env.8.xml: Enhance documentation --- modules/pam_env/pam_env.8.xml | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'modules/pam_env/pam_env.8.xml') diff --git a/modules/pam_env/pam_env.8.xml b/modules/pam_env/pam_env.8.xml index 309643fd..6eac6c8d 100644 --- a/modules/pam_env/pam_env.8.xml +++ b/modules/pam_env/pam_env.8.xml @@ -53,17 +53,23 @@ PAM_RHOST. - By default rules for (un)setting of variables is taken from the - config file /etc/security/pam_env.conf if - no other file is specified. + By default rules for (un)setting of variables are taken from the + config file /etc/security/pam_env.conf. An + alternate file can be specified with the conffile + option. - This module can also parse a file with simple - KEY=VAL pairs on separate lines - (/etc/environment by default). You can - change the default file to parse, with the envfile - flag and turn it on or off by setting the readenv - flag to 1 or 0 respectively. + Second a file (/etc/environment by default) with simple + KEY=VAL pairs on separate lines will be read. + With the envfile option an alternate file can be specified. + And with the readenv option this can be completly disabled. + + + Third it will read a user configuration file + ($HOME/.pam_environment by default). + The default file file can be changed with the + user_envfile option + and it can be turned on and off with the user_readenv option. Since setting of PAM environment variables can have side effects @@ -107,8 +113,11 @@ Indicate an alternative environment - file to override the default. This can be useful when different - services need different environments. + file to override the default. The syntax are simple + KEY=VAL pairs on separate lines. The + export instruction can be specified for bash + compatibility, but will be ignored. + This can be useful when different services need different environments. @@ -133,9 +142,11 @@ Indicate an alternative .pam_environment - file to override the default. This can be useful when different - services need different environments. The filename is relative to - the user home directory. + file to override the default.The syntax is the same as + for /etc/environment. + The filename is relative to the user home directory. + This can be useful when different services need different + environments. -- cgit v1.2.3