Bug 172564

Summary: I can't see "Last login" message after logged via ssh
Product: Red Hat Enterprise Linux 3 Reporter: Bastien Nocera <bnocera>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2006-0298 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-20 12:54:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181405    

Description Bastien Nocera 2005-11-07 11:08:01 UTC
+++ This bug was initially created as a clone of Bug #118855 +++

Hi,

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
results.

Szpak


How reproducible:
Alwayes

Steps to Reproduce:
1. Log via ssh
2. Look at screen

-- Additional comment from bart.martens on 2004-03-22 01:17 EST --
openssh-server-3.6.1p2-19

Bug known upstream, see:
http://bugzilla.mindrot.org/show_bug.cgi?id=463

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 rodgersmp on 2004-05-16 21:29 EST --
The file /var/log/lastlog by default seems to have 600 permissions
(-rw-------).  

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.)

--Mike

Comment 3 Jindrich Novy 2006-04-06 09:48:53 UTC
devel ack for U8

Comment 4 Bob Johnson 2006-04-11 15:49:22 UTC
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.

Comment 7 Red Hat Bugzilla 2006-07-20 12:54:25 UTC
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.

http://rhn.redhat.com/errata/RHSA-2006-0298.html