LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-31-2002, 04:29 AM   #1
yuzuohong
Member
 
Registered: May 2002
Location: Shanghai, PRC
Distribution: RedHat 6.2 | 7.2 | 8 | 9|3
Posts: 81

Rep: Reputation: 15
Angry How to erase the login history (RedHat)?


Hi all,

I know command "last" can show the login history. But I'm very curious that
if I can erase that information?

fish
 
Old 08-31-2002, 04:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
well if you actaully read the man page for last:
Code:
NOTES
       The files wtmp and btmp might not be found. The system only logs  information  in
       these files if they are present. This is a local configuration issue. If you want
       the files to be used, they can be created with a  simple  touch(1)  command  (for
       example, touch /var/log/wtmp).
so naturally, remove those files and it'll be unavailable. PLEASE try reading the docs before asking questions.
 
Old 08-31-2002, 04:35 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
The files you are looking for are at least /var/log/wtmp but there might be a couple of other files logging login stuff like specified in /etc/syslog.conf
 
Old 08-31-2002, 05:10 AM   #4
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
When you're dealing with /var/log/wtmp, btmp and utmp, do not erase them. The file will not be recreated. Instead do:

cat /dev/null >/var/log/wtmp

On some systems, you can just do:

>/var/log/wtmp

This will remove the contents of the file while leaving it intact.

-mk
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
history of remote login jonfa Linux - General 5 12-02-2011 06:23 AM
Recent File History: how do you erase it? Yoozer Linux - Newbie 2 09-16-2005 05:34 PM
login history zaichik Linux - Newbie 1 06-12-2004 09:22 AM
Erase shell history mikeshn Linux - General 1 04-25-2004 08:28 AM
Konqueror Browser: History, how to erase it? vous Linux - Software 7 04-10-2004 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 AM.

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