Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man7/pam_unix_session.7
Real path: /usr/share/man/man7/pam_unix_session.7
Zurück
'\" te .\" Copyright (c) 2009, 2023, Oracle and/or its affiliates. .TH pam_unix_session 7 "12 Sep 2023" "Oracle Solaris 11.4" "Standards, Environments, Macros, Character Sets, and miscellany" .SH NAME pam_unix_session \- session management PAM module for UNIX .SH SYNOPSIS .LP .nf \fBpam_unix_session.so.1\fR [\fBdebug\fR] [\fBnowarn\fR] .fi .SH DESCRIPTION .sp .LP The \fBpam_unix_session\fR module implements \fBpam_sm_open_session\fR(3PAM) and \fBpam_sm_close_session\fR(3PAM). .sp .LP \fBpam_sm_open_session()\fR reads the \fB/var/adm/lastlog\fR file to retrieve the last login time for the user and displays a \fBPAM_TEXT_INFO\fR message using the current PAM conversation function to display the time and date of the last login of the user. The format of the message is in either one of the following formats: .sp .in +2 .nf Last login: Wed Sep 17 14:57:54 2014 from abc.example.com .fi .in -2 .sp .sp .in +2 .nf Last login: Wed Sep 17 14:57:54 2014 on /dev/console .fi .in -2 .sp .sp .LP \fBpam_sm_open_session()\fR also updates the \fB/var/adm/lastlog\fR file with the information contained in the \fBPAM_USER\fR, \fBPAM_TTY\fR, and \fBPAM_RHOST\fR items. \fBpam_unix_account\fR(7) uses this information to determine the previous time the user logged in when checking for account inactivity. .sp .LP \fBpam_sm_close_session()\fR is a null function. .sp .LP The following options can be passed to the module: .sp .ne 2 .mk .na \fBdebug\fR .ad .RS 10n .rt \fBsyslog\fR(3C) debugging information at the \fBLOG_DEBUG\fR level .RE .sp .ne 2 .mk .na \fBnowarn\fR .ad .RS 10n .rt Disables any error messages or warnings including the last login \fBPAM_TEXT_INFO\fR message. .RE .SH RETURN VALUES .sp .LP Upon successful completion, \fBPAM_SUCCESS\fR is returned. The following error codes are returned upon error: .sp .ne 2 .mk .na \fB\fBPAM_SESSION_ERR\fR\fR .ad .RS 20n .rt Cannot make or remove the entry for the specified session (\fBPAM_TTY\fR is not present). .RE .sp .ne 2 .mk .na \fB\fBPAM_USER_UNKNOWN\fR\fR .ad .RS 20n .rt No account is present for \fIuser\fR. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/library/pam-core _ Interface Stability Committed .TE .sp .SH SEE ALSO .sp .LP \fBsyslog\fR(3C), \fBlibpam\fR(3LIB), \fBpam\fR(3PAM), \fBpam_sm_open_session\fR(3PAM), \fBpam_sm_close_session\fR(3PAM), \fBnsswitch.conf\fR(5), \fBpam.conf\fR(5), \fBattributes\fR(7), \fBpam_authtok_check\fR(7), \fBpam_authtok_get\fR(7), \fBpam_authtok_store\fR(7), \fBpam_dhkeys\fR(7), \fBpam_passwd_auth\fR(7), \fBpam_unix_account\fR(7), \fBpam_unix_auth\fR(7), \fBpam_unix_cred\fR(7) .SH HISTORY .sp .LP The display of last login time was moved from the individual programs to the \fBpam_unix_session\fR module in Oracle Solaris 11.3.0. This included adding support for the \fBnowarn\fR option. .sp .LP The \fBpam_unix_session\fR module was introduced in Solaris 9, and later backported to patches for Solaris 8. This included support for the \fBdebug\fR option. Prior to that, this work was performed in the \fBpam_unix\fR module.