Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fwtmp(ADM) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acct(ADM)

acct(FP)

acct(S)

acctcms(ADM)

acctcom(ADM)

acctcon(ADM)

acctmerg(ADM)

acctprc(ADM)

acctsh(ADM)

ed(C)

runacct(ADM)

utmp(F)


 fwtmp(ADM)                      19 June 1992                      fwtmp(ADM)


 Name

    fwtmp, wtmpfix - manipulate connect accounting records

 Syntax

    /usr/lib/acct/fwtmp [ -ic ]

    /usr/lib/acct/wtmpfix [ files ]

 Description


    fwtmp

    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 to enable the editing, via ed(C),
    of corrupt records or general purpose maintenance of the file.

    The argument -ic is used to denote that input is in ASCII form, and out-
    put is to be written in binary form.

    wtmpfix

    wtmpfix examines the standard input or named files in wtmp format,
    corrects the time/date stamps to make the entries consistent, and writes
    to the standard output.  A - (the <dash> key) can be used in place of
    files to indicate the standard input.  If time/date corrections are not
    performed, acctcon(ADM) will fault when it encounters certain date-change
    records.

    Each time the date is set, a pair of date-change records are written to
    /etc/wtmp.  The first record is the old date denoted by the string ``old
    time'' placed in the ``line'' field and the flag OLDTIME placed in the
    ``type'' field of the <utmp.h> structure.  The second record specifies
    the new date and is denoted by the string ``new time'' placed in the
    ``line'' field and the flag NEWTIME placed in the ``type'' field.
    wtmpfix uses these records to synchronize all time stamps in the file.

    In addition to correcting time/date stamps, wtmpfix will check the vali-
    dity of the ``name'' field to ensure that it consists solely of
    alphanumeric characters or spaces.  If it encounters a name that is con-
    sidered invalid, it will change the login name to INVALID and write a
    diagnostic to the standard error.  In this way, wtmpfix reduces the
    chance that acctcon(ADM) will fail when processing connect accounting
    records.

 File

    /etc/wtmp

 See also

    acct(ADM), acct(FP), acct(S), acctcms(ADM), acctcom(ADM), acctcon(ADM),
    acctmerg(ADM), acctprc(ADM), acctsh(ADM), ed(C), runacct(ADM), utmp(F)

 Standards conformance

    fwtmp and wtmpfix are conformant with:

    AT&T SVID Issue 2.


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