Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!ucbarpa.Berkeley.EDU!haynes From: haynes@ucbarpa.Berkeley.EDU.UUCP Newsgroups: comp.unix.wizards Subject: wtmp file corruption Message-ID: <17332@ucbvax.BERKELEY.EDU> Date: Thu, 12-Feb-87 03:39:27 EST Article-I.D.: ucbvax.17332 Posted: Thu Feb 12 03:39:27 1987 Date-Received: Fri, 13-Feb-87 03:34:03 EST Sender: usenet@ucbvax.BERKELEY.EDU Distribution: world Organization: University of California at Berkeley Lines: 15 We had this problem several years ago when we were trying to use wtmp for accounting. The cause is that if two people log in at the same time there is no interlocking, so they both append to wtmp and this in general screws it up. This may be the problem you are having. Our solution was (sadly) to hack the init program to write the wtmp information into a directory /usr/adm/stmps where there is one stmp file per tty. As long as two people can't log in at the same time on the same tty this prevents the problem. Jim Haynes ...ucbvax!ucscc!haynes haynes@ucscc.bitnet haynes@ucbarpa.berkeley.edu