From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adrian C." Subject: Re: can't get lastlogin info wen loging in trough ssh Date: Fri, 29 Oct 2004 00:02:52 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <60a7468904102814025ba1a85b@mail.gmail.com> References: <41349AA2.7050701@udesa.edu.ar> <4134B47A.1080506@apartia.fr> <41815CAE.3070205@udesa.edu.ar> Reply-To: "Adrian C." Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <41815CAE.3070205@udesa.edu.ar> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: =?ISO-8859-1?Q?Mat=EDas_L=F3pez_Bergero?= Cc: linux-admin@vger.kernel.org See /etc//login.defs LASTLOG_ENAB yes --Adrian. On Thu, 28 Oct 2004 17:55:10 -0300, Mat=EDas L=F3pez Bergero wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hello, > Again with this, >=20 > I'm not able to display the lastlog msg wen I log in thought ssh on m= y > Linux box. > I'm using OpenSSH_3.6.1p2 >=20 > I have found this on the sshd man page: >=20 > LOGIN PROCESS > ~ When a user successfully logs in, sshd does the following: >=20 > 1. If the login is on a tty, and no command has been specified, > prints last login time and /etc/motd (unless prevented in the > configuration file or by $HOME/.hushlogin; see the FILES sec-tion). >=20 > As far as I know, the ttys are the consoles connected to the st > input(keyboard), so, what is the sense of this??? Wen I login using s= sh, > I'm doing it thought a tty? >=20 > I couldn't find anything about the process performed by ssh wen the > login is from a remote host. >=20 > Any help will be most welcome. >=20 > BR, > Mat=EDas. >=20 > Laurent CARON wrote: >=20 >=20 > | Mat=EDas L=F3pez Bergero wrote: > | > |> -----BEGIN PGP SIGNED MESSAGE----- > |> Hash: SHA1 > |> > |> Hi, > |> I can't get lastlogin info wen login in trough ssh no mater where = I > |> login from. > |> I have enabled the PrintLastLog option in sshd_config, but the las= tlogin > |> date doesn't appears. It does appears wen I login from the box its= elf, > |> but not via ssh. > |> > |> Any ideas on how can I get this to work? > |> I have a RedHat 8, Linux 2.4.27, OpenSSH_3.4p1. > |> > | Hello, > | > | have a look in /etc/pam.d/ssh > | > | Laurent > | - > | To unsubscribe from this list: send the line "unsubscribe linux-adm= in" in > | the body of a message to majordomo@vger.kernel.org > | More majordomo info at http://vger.kernel.org/majordomo-info.html > | >=20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >=20 > iD8DBQFBgVyuRB0HKLRQp/gRAhNdAKCAxJ1ygJE8tDa7jPndes8Iwl4wRgCglrfG > iAz/KGSIeKhZ2b/Vx3WGSiY=3D > =3D1R3S > -----END PGP SIGNATURE----- >=20 >=20 > - > To unsubscribe from this list: send the line "unsubscribe linux-admin= " in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html