Hi--
How do I open and read a wtmp.1 file?
Thanks!
Hi--
How do I open and read a wtmp.1 file?
Thanks!
:- Doug.
It is login and logout info if I recall. Look at it with vi or more the file in terminal.
Its gonna look like a bunch of hex data so it wont make sense.
Linux Hardware Boycott!
How Many People Have you Converted To Linux?
HD-DVD code:I cant tell you because I got an infraction for posting it here.
cantormath--
Thanks for helping me so quickly!
Yes, that is the question, isn't it--how to make it humanly readable! Any thoughts on that?
:- Doug.
Hi--
Just answered my own question:
Code::/var/log$ last -f wtmp.1
:- Doug.
/usr/sbin/dump-utmp /var/log/wtmp.1
paco_moreno--
Thanks! Guess there is always another way to do something under linux, huh?
I would have to install dump for that to work....
Thanks!
:- Doug.
Hi,
I'm trying to do the same thing but your snippets give nothing!
Could you please explain how did you use them to read these binary logs?
Code:$ /usr/sbin/dump-utmp /var/log/wtmp.1 bash: /usr/sbin/dump-utmp: No such file or directoryCode:$ :/var/log$ last -f wtmp.1 bash: :/var/log$: No such file or directory
I would suspect that if the thread doesn't help you at all, you will struggle with understanding a hex dump even if we explain how to get one.
Hopefully you noted that Doug mentioned he would have to install the dump command. Did you do the same? If you didn't, then that would be a simple explanation for why it didn't work.
Also, most shell users set their terminals up so that their prompt includes information on their current directory. Eg when I first start a terminal, my prompt shows:
(I prefer to use a > to a $ as my end-of-prompt marker.) When someone says type:Code:/home/vernona>
they mean "cd to directory /var/log/ and use the dump command on the file abc". This is standard Unix-speak. Another convention is that if you need to run a command as root, change the $ to a #, as the root user commonly uses a # at the end of his prompt to distinguish him from a regular user.Code::/var/log$ dump abc
Last edited by jasonkirk2006; March 24th, 2010 at 07:48 AM.
I did the commands, and added a re-direction to create a text file, which I could then read in my favoiurite text editor.I used the following code:
/var/log/wtmp.1 >>wtmp.txt
Then I could openit up with a text editor.Hope this helps.
Bookmarks