Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wtmpfix(1M) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acctcom(1)

ed(1)

acct(1M)

acctcms(1M)

acctcon(1M)

acctmerg(1M)

acctprc(1M)

acctsh(1M)

runacct(1M)

acct(2)

acct(4)

utmp(4)




fwtmp(1M) fwtmp(1M)
NAME fwtmp, wtmpfix - manipulate connect accounting records SYNOPSIS /usr/lib/acct/fwtmp [-ic] /usr/lib/acct/wtmpfix [files] DESCRIPTION fwtmp reads from the standard input and writes to the stan- dard output, converting binary records of the type found in wtmp to formatted ASCII records. The ASCII version is use- ful for editing bad records with ed(1), or general file maintenance. -ic input is in ASCII form and output is to be written in binary form. wtmpfix examines the standard input or named files in wtmp format, makes the time/date stamps on the entries con- sistent, and writes to the standard output. Using - in place of files indicates the standard input. If you don't correct the time/date stamp, acctcon1 will fault when it en- counters certain date-change records. Each time the date is set, a pair of date change records is written to /etc/wtmp. The first record is the old date marked with old time in the line field and the flag OLD_TIME in the type field of the utmp.h structure. The second record specifies the new date and is marked with new time in the line field and the flag NEW_TIME in the type field. wtmpfix uses these records to synchronize all time stamps in the file. In addition to correcting time/date stamps, wtmpfix ensures that the name field consists solely of alphanumeric charac- ters or spaces. If it encounters an invalid name, it changes the login name to INVALID and writes a diagnostic to the standard error. In this way, wtmpfix reduces the chance that acctcon1 will fail when processing connect accounting records. FILES /usr/lib/acct/fwtmp /usr/lib/acct/wtmpfix /etc/wtmp /usr/include/utmp.h SEE ALSO acctcom(1), ed(1), acct(1M), acctcms(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), runacct(1M), acct(2), acct(4), utmp(4). April, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026