PAM_MISC_SETENV(3) Linux-PAM Manual PAM_MISC_SETENV(3)
NAME
pam_misc_setenv - BSD like PAM environment variable setting
SYNOPSIS
#include <security/pam_misc.h>
int pam_misc_setenv(pam_handle_t *pamh, const char *name, const char *value,
int readonly);
DESCRIPTION
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.
SEE ALSO
pam_putenv(3), pam(7)
STANDARDS
The pam_misc_setenv function is part of the libpam_misc Library and not defined in any
standard.
Linux-PAM Manual 06/08/2020 PAM_MISC_SETENV(3)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2026-01-09 16:45 @216.73.216.127 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)