Bug 118855 - I can't see "Last login" message after logged via ssh
I can't see "Last login" message after logged via ssh
Product: Fedora
Classification: Fedora
Component: openssh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-03-21 13:31 EST by Marcin Zajaczkowski
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-03-22 01:17:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marcin Zajaczkowski 2004-03-21 13:31:05 EST

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


How reproducible:

Steps to Reproduce:
1. Log via ssh
2. Look at screen
Comment 1 Bart Martens 2004-03-22 01:17:42 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.
Comment 2 Michael Rodgers 2004-05-16 21:29:57 EDT
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.)


Note You need to log in before you can comment on or make changes to this bug.