介紹
To set/unset environment variables
Usage
[Step 1]
rules for (un)setting of variables are taken from the config file /etc/security/pam_env.conf
預設那 File 係空的
[Step 2]
Second a file (Default: /etc/environment) with simple KEY=VAL pairs on separate lines will be read
預設那 File 係空的
[Step 3]
Third it will read a user configuration file (Default: $HOME/.pam_environment)
預設那 File 不存在
OPTIONS
- conffile option (/etc/security/pam_env.conf)
- envfile option (/etc/environment)
- user_envfile option ($HOME/.pam_environment)
[2]
readenv=0|1
Turns on or off the reading of the file specified by envfile
[3]
user_readenv=0|1
By default this option is off
原因: user supplied environment variables in the PAM environment could affect behavior of subsequent modules in the stack without the consent of the system administrator