pam_env(8)

pam_env8

The environment pam module

Usage

[service-name] function-class control-flag pam_env [options]

Overview

The Environment PAM module supports the authentication and session management function classes. In terms of the function-class parameter, these are “auth” and “session” respectively. The Environment PAM module has identical support for both supported function classes.

The Environment PAM module allows the setting and unsetting of environment variables. The use of previously set environment variables as well as PAM_ITEMs such as PAM_RHOST is supported.

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.

The following options may be passed to this module:

conffile=/path/to/pam_env.conf

Indicate an alternative pam_env.conf style configuration file to override the default. This can be useful when different services need different environments.

debug

A lot of debug information will be printed to the system log.

envfile=/path/to/environment

Indicate an alternative environment file to override the default. This can be useful when different services need different environments.

readenv=0|1

Turns on or off the reading of the file specified by envfile (0 is off, 1 is on). By default this option is on.

Files

/etc/security/pam_env.conf

The default configuration file.

/etc/environment

The default environment file.

Releases

106 releases since Mac OS X 10.6; the text changed 1 time.

  1. 10.6–10.6.8
  2. 10.7–26.5

Authors

The pam_env module was written by Dave Kinchlea <[email protected]>.

From pam_modules 217.100.6 in macOS 26.5. Parsed by carta from the page's mdoc source.