From owner-freebsd-questions Sat Aug 19 12:28:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n1f.san.rr.com (dt051n1f.san.rr.com [204.210.32.31]) by hub.freebsd.org (Postfix) with ESMTP id D9D0237B422 for ; Sat, 19 Aug 2000 12:28:33 -0700 (PDT) Received: from gorean.org (master [10.0.0.2]) by dt051n1f.san.rr.com (8.9.3/8.9.3) with ESMTP id MAA67296; Sat, 19 Aug 2000 12:28:27 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <399EDFDB.5683F244@gorean.org> Date: Sat, 19 Aug 2000 12:28:27 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: bauerp Cc: freebsd-questions Subject: Re: w command appears broke in 4.1 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bauerp wrote: > > I have been steadily upgrading my system from 2.2.8 to 4.1 release as it > comes out. For some reason the 4.1 update appears to have broken w. I > used to be able to see who was logged in but now I cannot. Delete /var/run/utmp, /var/log/wtmp and /var/log/lastlog Because the formats of these three files is different between the 2.2.8 and 4.x branches attempting to read them with the new system binaries will result in the display of what seem to be corrupted entries, and in some cases may prevent them from working properly. By deleting them before you reboot you will eliminate this problem. Although in theory the system should do the right thing and create them again for you, at least for wtmp and lastlog it does not, so it is safer to touch the files after you have deleted them. You should take note of their permissions before deleting them and reset them appropriately after you touch them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message