LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2013, 12:41 AM   #1
jaishiv5
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
How to make /var/log/wtmp file persistance.


Can anybody tell me how to make /var/log/wtmp file persistance.Means after reboot it would show the previous content also

Last edited by jaishiv5; 08-16-2013 at 02:27 AM.
 
Old 08-16-2013, 02:08 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi jaishiv5, welcome to LQ,

please do not write your whole posting in bold letters. Your content isn't more imporant than other's.

You should tell us about the distribution you're using. This behavior depends on the distribution.

You could also check which script wipes the file and then change the script.

Markus
 
Old 08-16-2013, 02:27 AM   #3
jaishiv5
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I am using Linux kernel version 2.6.13.4 .
 
Old 08-16-2013, 02:29 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
/var/log/wtmp should hold all login records by default (that should apply to all distros with the exception of Live CD, DVD or USB sticks or read-only virtualization guests and the like): it's /var/run/utmp that's not persistent.
 
Old 08-16-2013, 02:35 AM   #5
jaishiv5
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
The problem is to make /var/log/wtmp file to persistence.How to do that ?
 
Old 08-16-2013, 02:49 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Like markush said: tell us which Linux distribution and version you use (RHEL 6.4, CentOS 5.6, Ubuntu LTS 12.04, etc) and look for scripts or log entries that modify wtmp (like 'grep wtmp -r /etc').
 
1 members found this post helpful.
  


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
/var/log/wtmp mrant Linux - Security 4 07-14-2013 09:41 PM
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 04:41 AM
/var/log/wtmp Permissions berzerked Red Hat 3 10-05-2011 03:49 PM
/var/log/wtmp ??? fatrandy13 Linux - Software 3 12-13-2004 10:07 AM
/var/log/wtmp praveenv Linux - Newbie 5 08-23-2004 03:48 PM


All times are GMT -5. The time now is 08:51 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