Man page - pam_putenv(3)
Packages contas this manual
- pam_putenv(3)
- pam_strerror(3)
- pam(3)
- pam_sm_setcred(3)
- pam_get_authtok(3)
- pam_error(3)
- pam_sm_acct_mgmt(3)
- pam_getenv(3)
- pam_conv(3)
- pam_start(3)
- pam_get_data(3)
- pam_sm_close_session(3)
- pam_prompt(3)
- pam_close_session(3)
- pam_setcred(3)
- pam_info(3)
- pam_get_authtok_noverify(3)
- pam_set_data(3)
- pam_xauth_data(3)
- pam_end(3)
- pam_open_session(3)
- pam_vinfo(3)
- pam_get_item(3)
- pam_getenvlist(3)
- pam_get_user(3)
- misc_conv(3)
- pam_vprompt(3)
- pam_vsyslog(3)
- pam_syslog(3)
- pam_fail_delay(3)
- pam_chauthtok(3)
- pam_acct_mgmt(3)
- pam_sm_chauthtok(3)
- pam_get_authtok_verify(3)
- pam_sm_open_session(3)
- pam_misc_setenv(3)
- pam_verror(3)
- pam_sm_authenticate(3)
- pam_authenticate(3)
- pam_misc_drop_env(3)
- pam_set_item(3)
- pam_misc_paste_env(3)
Package: libpam-doc
apt-get install libpam-doc
apt-get install libpam-doc
Manuals in package:
Documentations in package:
Manual
| PAM_PUTENV(3) | Linux-PAM Manual | PAM_PUTENV(3) |
NAME
pam_putenv - set or change PAM environment variable
SYNOPSIS
#include <security/pam_appl.h>
int pam_putenv(pam_handle_t *pamh, const char *name_value);
DESCRIPTION
The pam_putenv function is used to add or change the value of PAM environment variables as associated with the pamh handle.
The pamh argument is an authentication handle obtained by a prior call to pam_start(). The name_value argument is a single NUL terminated string of one of the following forms:
NAME=value of variable
In this case the environment variable of the given NAME
is set to the indicated value: value of variable. If this variable is
already known, it is overwritten. Otherwise it is added to the PAM
environment.
NAME=
This function sets the variable to an empty value. It is
listed separately to indicate that this is the correct way to achieve such a
setting.
NAME
Without an '=' the pam_putenv() function will
delete the corresponding variable from the PAM environment.
pam_putenv() operates on a copy of name_value, which means in contrast to putenv(3), the application is responsible for freeing the data.
RETURN VALUES
PAM_PERM_DENIED
Argument name_value given is a NULL pointer.
PAM_BAD_ITEM
Variable requested (for deletion) is not currently
set.
PAM_ABORT
The pamh handle is corrupt.
PAM_BUF_ERR
Memory buffer error.
PAM_SUCCESS
The environment variable was successfully updated.
SEE ALSO
pam_start(3), pam_getenv(3), pam_getenvlist(3), pam_strerror(3), pam(7)
| 06/29/2025 | Linux-PAM |