Bug 150756
Summary: | Setup does not create /var/log/lastlog | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alfred Glanzer <alfred> |
Component: | shadow-utils | Assignee: | Peter Vrabec <pvrabec> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | 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
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? 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. lastlog is created by shadow-utils on addition of users. 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. Bill, would it be wrong to "touch /var/log/lastlog" sometime during initscripts? util-linux will create /var/log/lastlog #151635 |