Bug 150756

Summary: Setup does not create /var/log/lastlog
Product: [Fedora] Fedora Reporter: Alfred Glanzer <alfred>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-25 13:31:28 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:

Description Alfred Glanzer 2005-03-10 09:40:09 UTC
Description of problem:
The package setup used to create /var/log/lastlog. This file is no
longer created, which is the cause for a lot of error messages !

Version-Release number of selected component (if applicable):
setup-2.5.40-1

How reproducible:
Always

Comment 1 Bill Nottingham 2005-03-10 16:54:22 UTC
Due to the way rpm treats config files (using mmap to verify them),
and the fact that lastlog is a sparse file, lastlog cannot be included
in the package, so it's now a ghost file.

What sort of errors do you see?

Comment 2 Alfred Glanzer 2005-03-11 10:51:12 UTC
The errors below show up in /var/log/secure !

Mar 10 16:43:45 freshserver sshd[2881]: lastlog_perform_login:
Couldn't stat /var/log/lastlog: No such file or directory
Mar 10 16:43:45 freshserver sshd[2881]: lastlog_openseek:
/var/log/lastlog is not a file or directory!
Mar 10 16:43:45 freshserver sshd[2881]: lastlog_perform_login:
Couldn't stat /var/log/lastlog: No such file or directory
Mar 10 16:43:45 freshserver sshd[2881]: lastlog_openseek:
/var/log/lastlog is not a file or directory!

When a users logs-in, an attempt is made to write to /var/log/lastlog.

Comment 3 Bill Nottingham 2005-03-11 16:56:12 UTC
lastlog is created by shadow-utils on addition of users.

Comment 4 Alfred Glanzer 2005-03-11 16:59:38 UTC
That should solve this problem.

However, in my case, all users are created in OpenLDAP, so I do not
know if a lastlog is also created in this special case.

Comment 5 Warren Togami 2005-03-23 05:14:21 UTC
Bill, would it be wrong to "touch /var/log/lastlog" sometime during initscripts?

Comment 6 Peter Vrabec 2005-03-25 13:31:28 UTC
util-linux will create /var/log/lastlog
#151635