SysIII/usr/src/man/man1/fwtmp.1m

.TH FWTMP 1M
.SH NAME
fwtmp, wtmpfix \- manipulate wtmp records
.SH SYNOPSIS
.B fwtmp
.RB [\^ \-ic \^]
.br
.B wtmpfix
[\^files\^]
.SH DESCRIPTION
.SS Fwtmp
\fIFwtmp\fP reads from the standard input and
writes to the standard output,
converting binary records of the type found in
.B wtmp
to formated \s-1ASCII\s0 records.
The \s-1ASCII\s0 version is useful to enable editing, via \fIed\fP(1),
bad records or general purpose maintenance of the file.
.PP
The argument \fB\-ic\fP is used to denote that input is in \s-1ASCII\s0 form,
and output is to be written in binary form.
.SS Wtmpfix
.I Wtmpfix\^
examines the standard input or named files in
.B wtmp
format, corrects the time/date stamps to make the
entries consistent, and writes to the standard output.
A \fB\-\fP can be used in place of \fIfiles\fP to indicate
the standard input.
If time/date corrections are not made,
.I acctcon1\^
will fault when it encounters certain date change records.
.PP
Each time the date is set while operating in multi-user
mode, a pair of date change records are written to
.BR /usr/adm/wtmp .
The first record is the old date denoted
by \(bv in the name field.
The second record specifies the new date and is
denoted by a \fB{\fP in the name field.
.I Wtmpfix\^
uses these records to synchronize all time stamps in the file.
.SH FILES
/usr/adm/wtmp
.br
/usr/include/utmp.h
.SH SEE ALSO
acct(1M),
acctcms(1M),
acctcom(1),
acctcon(1M),
acctmerg(1M),
acctprc(1M),
acctsh(1M),
runacct(1M),
acct(2),
acct(5),
utmp(5).