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-03-2009, 07:16 PM   #1
masenko703
Member
 
Registered: May 2003
Posts: 33

Rep: Reputation: 15
/var/log/wtmp vs. /var/run/utmp


Hi guyz,
Whats the dif between /var/log/wtmp vs. /var/run/utmp?
 
Old 08-03-2009, 07:42 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
From the commandline try this: 'apropos utmp', then select a manual page: 'man 5 utmp' and let us know if you have questions after reading it.
 
Old 08-03-2009, 08:42 PM   #3
masenko703
Member
 
Registered: May 2003
Posts: 33

Original Poster
Rep: Reputation: 15
So The utmp and wtmp file records all logins and logouts.

Except the wtmp file format is exactly like utmp except that a null user name indicates a logout on the associated terminal. Furthermore, the terminal name ~ with user name shutdown or reboot indicates a system shutdown or reboot and the pair of terminal names |/} logs the old/new system time when date(1) changes it. wtmp is maintained by login(1), init(1), and some versions of getty(1). Neither of these programs creates the file, so if it is removed, record-keeping is turned off.\

Is that right? I'm I missing something?
 
Old 08-04-2009, 01:57 PM   #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
Your manual page quoting skills being beyond reproof this looks right to me.
 
Old 10-05-2012, 04:41 AM   #5
jzmaliwat
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
A litte help

To cut the long story short.

utmp - indicates the current user login on the system

wtmp - indicates all normal users who login on the system

Hope it helps

Thank you.
 
  


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 Permissions berzerked Red Hat 3 10-05-2011 03:49 PM
/var/run/utmp permissions differ from those suggested in man 5 utmp pwc101 Slackware 5 02-14-2011 11:46 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 05:12 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