]>
Commit | Line | Data |
---|---|---|
78d5ceac KZ |
1 | '\" -*- coding: UTF-8 -*- |
2 | .\" Copyright (C) 2010 Michael Krapp | |
3 | .\" | |
4 | .\" This program is free software; you can redistribute it and/or modify | |
5 | .\" it under the terms of the GNU General Public License as published by | |
6 | .\" the Free Software Foundation; either version 2 of the License, or | |
7 | .\" (at your option) any later version. | |
8 | .\" | |
9 | .\" This program is distributed in the hope that it will be useful, | |
10 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | .\" GNU General Public License for more details. | |
13 | .\" | |
14 | .\" You should have received a copy of the GNU General Public License | |
15 | .\" along with this program; if not, write to the Free Software | |
16 | .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | .\" | |
ea4ca239 | 18 | .TH UTMPDUMP "1" "July 2012" "util-linux" "System Administration" |
78d5ceac KZ |
19 | .SH NAME |
20 | utmpdump \- dump UTMP and WTMP files in raw format | |
21 | .SH SYNOPSIS | |
930954d8 | 22 | utmpdump [\-frohV] [ filename ] |
78d5ceac | 23 | .SH DESCRIPTION |
ea4ca239 SK |
24 | .B utmpdump |
25 | is a simple program to dump UTMP and WTMP files in raw format, so they | |
26 | can be examined. | |
27 | .B utmpdump | |
28 | eads from stdin unless a | |
4810de91 BV |
29 | .I filename |
30 | is passed. | |
78d5ceac | 31 | .SH OPTIONS |
ea4ca239 SK |
32 | .IP "\fB\-f\fR, \fB\-\-follow\fP" |
33 | Output appended data as the file grows. | |
34 | .IP "\fB\-r\fR, \fB\-\-reverse\fP | |
9e15c93d | 35 | Undump, write back edited login information into utmp or wtmp files. |
930954d8 SK |
36 | .IP "\fB\-o\fR, \fB\-\-output\fP \fIfile\fR |
37 | Write command output to file instead of standard output. | |
ea4ca239 | 38 | .IP "\fB\-h\fR, \fB\-\-help\fP" |
9e15c93d | 39 | Print a help text and exit. |
ea4ca239 | 40 | .IP "\fB\-V\fR, \fB\-\-version\fP" |
9e15c93d KZ |
41 | Output version information and exit. |
42 | .SH NOTES | |
ea4ca239 SK |
43 | .B utmpdump |
44 | can be useful in cases of corrupted utmp or wtmp entries. It can dump | |
45 | out utmp/wtmp to an ASCII file, then that file can be edited to remove | |
46 | bogus entries and reintegrated, using | |
78d5ceac | 47 | .PP |
ea4ca239 SK |
48 | .RS |
49 | utmpdump -r < ascii_file > wtmp | |
50 | .RE | |
51 | .PP | |
78d5ceac KZ |
52 | but be warned as |
53 | .B utmpdump | |
54 | was written for debugging purpose only. | |
55 | .SH BUGS | |
56 | You may | |
57 | .B not | |
ea4ca239 SK |
58 | use the option |
59 | .B \-r | |
60 | as the format for the utmp/wtmp files strongly depends on the input | |
61 | format. This tool was | |
78d5ceac KZ |
62 | .B not |
63 | written for normal use but for debugging. | |
64 | .SH AUTHOR | |
65 | Michael Krapp | |
66 | .SH "SEE ALSO" | |
67 | .BR last (1), | |
68 | .BR w (1), | |
69 | .BR who (1), | |
ea4ca239 SK |
70 | .BR utmp (5) |
71 | .SH AVAILABILITY | |
72 | The utmpdump command is part of the util-linux package and is available | |
73 | from | |
74 | .UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/ | |
75 | Linux Kernel Archive | |
76 | .UE . |