WARNING 3.2.1 may remove your accounting data
Vernon Schryver
vjs at rhyolite.wpd.sgi.com
Fri Dec 29 14:44:29 AEST 1989
/etc/wtmp is rotated to prevent unhappy consequences of infinite growth.
The general scheme is ancient, having been copied from 2000/3000 days.
The next release has a slightly handier scheme, where wtmp is rotated only
if it is "big". This is handy for the common case, where the "last"
command is the only thing that looks at wtmp and the machine is used by few
people so wtmp grows slowly. The last command will also have facilities to
suppress some of the extraneous lines, and to specify an alternate file,
such as /etc/OLDwtmp.
An accounting scheme which relies on wtmp and last seems novel. However,
one should not argue with success. Such a system would no doubt want to do
its own wtmp rotating, by modifying /usr/spool/cron/crontabs/root.
With each new release, you might want to consider merging your changes
with ours.
Anyone with such a system should beware that not only do we not promise to
not change either output of the last command or the structure of utmp and
wtmp, but we intend to change both in the release after next. This is part
of a grand plan to get 4.3 BSD style host names into wtmp. Do not be
surprised to see a "shadow wtmp" in the next release, used by the last
and w commands to produce new-style output.
Vernon Schryver
Silicon Graphics
vjs at sgi.com
More information about the Comp.sys.sgi
mailing list