# pam_getenv - get environment variables from /etc/environment - man(8) - [phpMan]

[_PAM_GETENV_(8)](https://www.chedong.com/phpMan.php/man/PAMGETENV/8/markdown)                    User Contributed Perl Documentation                   [_PAM_GETENV_(8)](https://www.chedong.com/phpMan.php/man/PAMGETENV/8/markdown)

## NAME
       pam_getenv - get environment variables from /etc/environment

## SYNOPSIS
       pam_getenv **[-l] [-s] _**env_var_

## DESCRIPTION
       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.

Debian GNU/Linux                             2026-07-16                                [_PAM_GETENV_(8)](https://www.chedong.com/phpMan.php/man/PAMGETENV/8/markdown)
