Red Hat Bugzilla – Bug 172564
I can't see "Last login" message after logged via ssh
Last modified: 2007-11-30 17:07:08 EST
+++ This bug was initially created as a clone of Bug #118855 +++
After install Fedora 1 on my server I can't see "Last login" message
after logged via ssh. In RH 7.3 there was no problem with this. I see
this message when log lacally.
In sshd_config there is PrintLastLogin Yes.
I've looked through mailing list, newsgroup and forums but without any
Steps to Reproduce:
1. Log via ssh
2. Look at screen
-- Additional comment from firstname.lastname@example.org on 2004-03-22 01:17 EST --
Bug known upstream, see:
Workaround: chmod a+r /var/log/lastlog
The bug exists also on Debian sarge with ssh 3.6.1p2-12, but there the
lastlog file is already world readable, so the problem doesn't occur.
-- Additional comment from email@example.com on 2004-05-16 21:29 EST --
The file /var/log/lastlog by default seems to have 600 permissions
The program finger consults this file to find the date/time of a
user's last login (unless the user is currently logged in). This
means that, unless you give world read permission on this file, a
second symptom will be that fingering any user not presently logged
in will yield "Never logged in."
(This took me a while to track down because I erroneously assumed
finger just read /var/log/wtmp.)
devel ack for U8
This issue is on Red Hat Engineering's list of planned work items
for the upcoming Red Hat Enterprise Linux 3.8 release. Engineering
resources have been assigned and barring unforeseen circumstances, Red
Hat intends to include this item in the 3.8 release.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.