159 lines
3.5 KiB
HTML
159 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of UTMPDUMP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>UTMPDUMP</H1>
|
|
Section: User Commands (1)<BR>Updated: July 2014<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
utmpdump - dump UTMP and WTMP files in raw format
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>utmpdump</B> [options]
|
|
|
|
[<I>filename</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>utmpdump</B>
|
|
|
|
is a simple program to dump UTMP and WTMP files in raw format, so they
|
|
can be examined.
|
|
<B>utmpdump</B>
|
|
|
|
reads from stdin unless a
|
|
<I>filename</I>
|
|
|
|
is passed.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-f</B>,<B> --follow</B>
|
|
|
|
<DD>
|
|
Output appended data as the file grows.
|
|
<DT id="2"><B>-o</B>,<B> --output </B><I>file</I>
|
|
|
|
<DD>
|
|
Write command output to <I>file</I> instead of standard output.
|
|
<DT id="3"><B>-r</B>,<B> --reverse</B>
|
|
|
|
<DD>
|
|
Undump, write back edited login information into the utmp or wtmp files.
|
|
<DT id="4"><B>-V</B>,<B> --version</B>
|
|
|
|
<DD>
|
|
Display version information and exit.
|
|
<DT id="5"><B>-h</B>,<B> --help</B>
|
|
|
|
<DD>
|
|
Display help text and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<B>utmpdump</B>
|
|
|
|
can be useful in cases of corrupted utmp or wtmp entries. It can dump
|
|
out utmp/wtmp to an ASCII file, which can then be edited to remove
|
|
bogus entries, and reintegrated using:
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="6"><DD>
|
|
<B>utmpdump -r < ascii_file > wtmp</B>
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
But be warned,
|
|
<B>utmpdump</B>
|
|
|
|
was written for debugging purposes only.
|
|
<A NAME="lbAG"> </A>
|
|
<H3>File formats</H3>
|
|
|
|
<P>
|
|
|
|
Only the binary version of the
|
|
<B><A HREF="/cgi-bin/man/man2html?5+utmp">utmp</A></B>(5)
|
|
|
|
is standardised. Textual dumps may become incompatible in future.
|
|
<P>
|
|
|
|
The version 2.28 was the last one that printed text output using
|
|
<B><A HREF="/cgi-bin/man/man2html?3+ctime">ctime</A></B>(3)
|
|
|
|
timestamp format. Newer dumps use millisecond precision ISO-8601 timestamp
|
|
format in UTC-0 timezone. Conversion from former timestamp format can be
|
|
made to binary, although attempt to do so can lead the timestamps to drift
|
|
amount of timezone offset.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
You may
|
|
<B>not</B>
|
|
|
|
use the
|
|
<B>-r</B>
|
|
|
|
option, as the format for the utmp/wtmp files strongly depends on the input
|
|
format. This tool was
|
|
<B>not</B>
|
|
|
|
written for normal use, but for debugging only.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Michael Krapp
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+last">last</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+w">w</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+who">who</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+utmp">utmp</A></B>(5)
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The utmpdump command is part of the util-linux package and is available
|
|
from
|
|
|
|
Linux Kernel Archive
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAF">NOTES</A><DD>
|
|
<DL>
|
|
<DT id="12"><A HREF="#lbAG">File formats</A><DD>
|
|
</DL>
|
|
<DT id="13"><A HREF="#lbAH">BUGS</A><DD>
|
|
<DT id="14"><A HREF="#lbAI">AUTHOR</A><DD>
|
|
<DT id="15"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="16"><A HREF="#lbAK">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:29 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|