LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2007, 07:10 AM   #1
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
/var/log/lastlog missing


Can someone tell me what package or config. script I need to reinstall or edit to get /var/log/lastlog written to?

I have a RHEL3 system where this file simply doesn't exist.
All my other RHEL3 and 4 systems do by default and I cannot find (man pages, google) any info on why this system wouldn't be writing it.

I can't see an rpm called lastlog or similar so I am thinking it is part of another package.

Any ideas?
 
Old 08-08-2007, 10:21 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I got the following on a RH4 (really, CentOS 4) system:
Code:
[root@machine log]# rpm -qf /var/log/lastlog
setup-2.5.37-1.3
shadow-utils-4.0.3-60.RHEL4
 
Old 08-08-2007, 07:38 PM   #3
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Original Poster
Rep: Reputation: 54
thanks for the reply Berhanie. For RHEL3 there is only 1 package "setup-2.5.x.x.x" so that was something I was going to try, till I found out an easier way from an obscure posting I came across.

Simply touching /var/log/lastlog was enough to get it to work again. Weird how it wouldn't create it itself, but anyway, there it is.

# touch /var/log/lastlog
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/packages and /var/log/setup sunny_5252 Slackware 4 05-17-2007 08:17 PM
Lastlog file -> missing users??? goodrookie Linux - Security 2 07-20-2006 11:57 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
/var/log/lastlog size ??? nabil Linux - General 0 10-09-2002 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration