pam_putenv − set or change PAM environment variable

#include <security/pam_appl.h>

int pam_putenv(pam_handle_t *pamh, const char *name_value);


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.


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.


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 to free the data.


Argument name_value given is a NULL pointer.


Variable requested (for deletion) is not currently set.


The pamh handle is corrupt.


Memory buffer error.


The environment variable was successfully updated.

(3), pam_getenv(3), pam_getenvlist(3), pam_strerror(3), pam(8)

More Linux Commands

smoltGui(1) - GUI for Smolt hardware profile submission.....
smoltGui is a graphical user interface that can be used to submit Smolt hardware profiles to a Smoon server. Smolt is a cross-desktop hardware reporting tool fo

XTranslateCoordinates(3) - translate window coordinates.....
If XTranslateCoordinates returns True, it takes the src_x and src_y coordinates relative to the source windows origin and returns these coordinates to dest_x_re

glRasterPos4s(3gl) - specify the raster position for pixel o
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma

Tk_SetWindowVisual(3) - change visual characteristics of win
When Tk creates a new window it assigns it the default visual characteristics (visual, depth, and colormap) for its screen. Tk_SetWindowVisual may be called to

Tcl_JoinPath(3) - manipulate platform-dependent file paths
These procedures have been superceded by the objectified procedures in the FileSystem man page, which are more efficient. These procedures may be used to disass

cdrecord(1) - write data to optical disk media (Man Page)...
wodim is used to record data or audio Compact Discs on an Orange Book CD-Recorder or to write DVD media on a DVD-Recorder. The device is the device file or labe

XmbTextExtents(3) - compute text extents - Linux man page...
The XmbTextExtents, XwcTextExtents and Xutf8TextExtents functions set the components of the specified overall_ink_return and overall_logical_return arguments to

plipconfig(8) - fine tune PLIP device parameters (Man Page)
Plipconfig is used to (hopefully) improve PLIP performance by changing the default timing parameters used by the PLIP protocol. Results are dependent on the par

glutKeyboardUpFunc(3) - sets the keyboard up (key release) c
glutKeyboardFunc sets the keyboard up (key release) callback for the current window. When a user types into the window, each key release matching an ASCII chara

systemd-machined.service(8) Virtual machine and container re
systemd-machined is a system service that keeps track of virtual machines and containers, and processes belonging to them. See systemd-nspawn(1) for some exampl

ntfscp(8) - copy file to an NTFS volume. - Linux man page...
ntfscp will copy file to an NTFS volume. destination can be either file or directory. In case if destination is directory specified by name then source_file is

git-whatchanged(1) - Show logs with difference each commit i
Shows commit logs and diff output each commit introduces. New users are encouraged to use git-log(1) instead. The whatchanged command is essentially the same as

We can't live, work or learn in freedom unless the software we use is free.