components/openssh/patches/003-last_login.patch
author Rich Burridge <rich.burridge@oracle.com>
Wed, 20 Apr 2016 19:46:50 -0700
changeset 5826 9c90e4a8156c
parent 5819 c5f05bd2a9bc
child 7649 69d7508f0d66
permissions -rw-r--r--
23137909 Userland man page normalization work
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2128
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     1
# The man page change here is Solaris-specific and thus is not being
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     2
# contributed back to the upstream community.  The servconf.c change
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     3
# was developed in-house and has been submitted upstream to OpenSSH for
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     4
# their consideration:
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     5
# https://bugzilla.mindrot.org/show_bug.cgi?id=2278
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
     6
#
5819
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5025
diff changeset
     7
# Update - accepted upstream:
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5025
diff changeset
     8
# https://github.com/openssh/openssh-portable/commit/ac908c1eeacccfa
c5f05bd2a9bc PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 5025
diff changeset
     9
#
2128
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    10
# OpenSSH normally updates lastlog when users login and reads lastlog to
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    11
# determine the last login time of the user however on Solaris the
5826
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5819
diff changeset
    12
# pam_unix_session(7) module handles both of these tasks so we compile
2128
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    13
# OpenSSH with --disable-lastlog to disable all lastlog references.
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    14
# This means the sshd_config option of PrintLastLog is now ignored and
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    15
# can't be changed so we update sshd's configuration parsing to flag
ea2364416471 PSARC/2014/342 pam_unix_session lastlog support
Brent Paulson <Brent.Paulson@Oracle.COM>
parents: 2070
diff changeset
    16
# this as unsupported and update the man page here.
1612
3f2ec017627f PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    17
#
5025
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    18
diff -pur old/sshd_config.5 new/sshd_config.5
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    19
--- old/sshd_config.5
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    20
+++ new/sshd_config.5
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    21
@@ -1300,8 +1300,8 @@ Specifies whether
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    22
 .Xr sshd 8
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    23
 should print the date and time of the last user login when a user logs
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    24
 in interactively.
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    25
-The default is
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    26
-.Dq yes .
5826
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5819
diff changeset
    27
+On Solaris this option is always ignored since pam_unix_session(7)
5025
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    28
+reports the last login time.
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    29
 .It Cm PrintMotd
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    30
 Specifies whether
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    31
 .Xr sshd 8
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    32
@@ -1721,7 +1721,8 @@ This file should be writable by root onl
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    33
 (though not necessary) that it be world-readable.
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    34
 .El
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    35
 .Sh SEE ALSO
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    36
-.Xr sshd 8
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    37
+.Xr sshd 8 ,
5826
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5819
diff changeset
    38
+.Xr pam_unix_session 7
5025
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    39
 .Sh AUTHORS
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    40
 OpenSSH is a derivative of the original and free
bdd7dc7d2af4 PSARC/2015/395 OpenSSH 7.1p1
Tomas Kuthan <tomas.kuthan@oracle.com>
parents: 2128
diff changeset
    41
 ssh 1.2.12 release by Tatu Ylonen.