pam_getenv(8)

pam_getenv8

Get environment variables from /etc/environment

Usage

pam_getenv [-l] [-s] env_var

Overview

This tool will print out the value of env_var from /etc/environment. It will attempt to expand environment variable references in the definition of env_var but will fail if PAM items are expanded.

The -l option indicates the script should return an environment variable related to default locale information.

The -s option indicates that the script should return an system default environment variable.

Currently neither the -l or -s options do anything. They are included because future versions of Debian may have a separate repository for the initial environment used by init scripts and for system locale information. These options will allow this script to be a stable interface even in that environment.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13

From libpam-runtime 1.7.0-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.