LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2007, 01:40 PM   #1
c000283
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
lastb command does not function


Greetings. I read the man page for last/lastb commands and was instructed that to begin using the commands you simply needed to touch the /var/log/wtmp and /var/log/btmp. I did this however I do not get any entries for the lastb (even when I purposely attempt to login with a bad password) and my entries for the last command are only for today.
I'm used to seeing the last command be good forever (once you touch the file wtmp - i.e. today's entries, yesterday's entries, the day before yesterday's entries, etc.) and the lastb command has never worked. The file is alwasy empty. I even opened the permissions to 777 in an attempt to get this function working.
Is there another service that needs to be started? I am using RedHat Rel 4.5.

[root@col4dtc22 ~]# ls -l /var/log/btmp
-rwxrwxrwx 1 root root 0 Sep 5 13:38 /var/log/btmp

************ Attempted login with a bad password *************

[root@col4dtc22 ~]# lastb

btmp begins Wed Sep 5 13:38:34 2007
 
Old 09-05-2007, 02:10 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Rights should be 0640, other than that I wouldn't know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lastb not working in RH9 scottjwoodford Linux - Software 2 09-05-2007 02:17 PM
how to enable lastb somae Linux - Security 2 06-06-2007 08:06 PM
PHP or perl script for lastb emulater Programming 3 11-28-2006 05:08 AM
Which Package Contains lastb MQMan Slackware 2 11-13-2005 07:53 PM
lastb log is not correct ust Linux - General 0 03-01-2004 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration