pam_misc_setenv(3)

pam_misc_setenv3

Bsd like pam environment variable setting

Usage

#include <security/pam_misc.h>

int pam_misc_setenv(pam_handle_t *pamh, const char *name, const char *value, int readonly);

Overview

This function performs a task equivalent to pam_putenv(3), its syntax is, however, more like the BSD style function; setenv(). The name and value are concatenated with an '=' to form a name=value and passed to pam_putenv(). If, however, the PAM variable is already set, the replacement will only be applied if the last argument, readonly, is zero.

Releases

13 releases since Debian 2.1 (Slink); the text changed 11 times.

  1. 2.1
  2. 2.2
  3. 3.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8–9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

Standards

The pam_misc_setenv function is part of the libpam_misc Library and not defined in any standard.

From pam 1.7.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.