Print this page
6057 login(1) "Last login" hostname is too short
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Albert Lee <trisk@omniti.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Alex Wilson <alex.wilson@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/pam_unix_session.5.man.txt
          +++ new/usr/src/man/man5/pam_unix_session.5.man.txt
↓ open down ↓ 6 lines elided ↑ open up ↑
   7    7  
   8    8  SYNOPSIS
   9    9         pam_unix_session.so.1
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         The pam_unix_session module implements pam_sm_open_session(3PAM) and
  14   14         pam_sm_close_session(3PAM).
  15   15  
  16   16  
  17      -       pam_sm_open_session() updates the /var/adm/lastlog file with the
  18      -       information contained in the PAM_USER, PAM_TTY, and PAM_RHOSTS items.
  19      -       pam_unix_account(5) uses this account to determine the previous time
  20      -       the user logged in.
       17 +       pam_sm_open_session() reads /var/adm/lastlog.v2 to report the user's
       18 +       last login time via a PAM_TEXT_INFO message as well as updates the file
       19 +       with information contained in the PAM_USER, PAM_TTY, and PAM_RHOSTS
       20 +       items.  pam_unix_account(5) also uses this file to determine the
       21 +       previous time the user logged in.
  21   22  
  22   23  
  23   24         pam_sm_close_session() is a null function.
  24   25  
  25   26  
  26   27         The following options can be passed to the module:
  27   28  
  28   29         debug
  29   30                  syslog(3C) debugging information at the LOG_DEBUG level
  30   31  
  31   32  
  32   33  ERRORS
  33   34         Upon successful completion, PAM_SUCCESS is returned. The following
  34   35         error codes are returned upon error:
  35   36  
  36   37         PAM_SESSION_ERR
  37   38                             Cannot make or remove the entry for the specified
  38   39                             session (PAM_TTY is not present).
  39   40  
  40      -
  41   41         PAM_USER_UNKNOWN
  42   42                             No account is present for user.
  43   43  
  44   44  
  45   45  ATTRIBUTES
  46   46         See attributes(5) for descriptions of the following attributes:
  47   47  
  48   48  
  49   49  
  50   50  
↓ open down ↓ 16 lines elided ↑ open up ↑
  67   67         the multi-threaded application uses its own PAM handle.
  68   68  
  69   69  
  70   70         The pam_unix(5) module is no longer supported. Similar functionality is
  71   71         provided by pam_authtok_check(5), pam_authtok_get(5),
  72   72         pam_authtok_store(5), pam_dhkeys(5), pam_passwd_auth(5),
  73   73         pam_unix_account(5), pam_unix_auth(5), and pam_unix_session(5).
  74   74  
  75   75  
  76   76  
  77      -                               September 9, 2004           PAM_UNIX_SESSION(5)
       77 +                               November 9, 2015            PAM_UNIX_SESSION(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX