Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wtmpfix(1M) — A/UX 0.7

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
          standard output, converting binary records of the type found
          in wtmp to formatted ASCII records.  The ASCII version is
          useful 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
          consistent, 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
          encounters 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 OLDTIME
          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 NEWTIME 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
          characters 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).




     Page 1                                        (last mod. 1/15/87)



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