PAM_SM_CLOSE_SESSION(3) Linux-PAM Manual PAM_SM_CLOSE_SESSION(3)NAME
pam_sm_close_session - PAM service function to terminate session management
SYNOPSIS
#define PAM_SM_SESSION
#include <security/pam_modules.h>
PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, const char **argv);
DESCRIPTION
The pam_sm_close_session function is the service module's implementation of the pam_close_session(3) interface.
This function is called to terminate a session. The only valid value for flags is zero or:
PAM_SILENT
Do not emit any messages.
RETURN VALUES
PAM_SESSION_ERR
Cannot make/remove an entry for the specified session.
PAM_SUCCESS
The session was successfully terminated.
SEE ALSO pam(3), pam_close_session(3), pam_sm_close_session(3), pam_strerror(3), PAM(8)Linux-PAM Manual 06/04/2011 PAM_SM_CLOSE_SESSION(3)
Check Out this Related Man Page
PAM_SM_CLOSE_SESSION(3) Linux-PAM Manual PAM_SM_CLOSE_SESSION(3)NAME
pam_sm_close_session - PAM service function to terminate session management
SYNOPSIS
#define PAM_SM_SESSION
#include <security/pam_modules.h>
PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, const char **argv);
DESCRIPTION
The pam_sm_close_session function is the service module's implementation of the pam_close_session(3) interface.
This function is called to terminate a session. The only valid value for flags is zero or:
PAM_SILENT
Do not emit any messages.
RETURN VALUES
PAM_SESSION_ERR
Cannot make/remove an entry for the specified session.
PAM_SUCCESS
The session was successfully terminated.
SEE ALSO pam(3), pam_close_session(3), pam_sm_close_session(3), pam_strerror(3), PAM(8)Linux-PAM Manual 06/04/2011 PAM_SM_CLOSE_SESSION(3)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)