From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 16:51:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3330C16A4CE for ; Tue, 29 Jun 2004 16:51:54 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA03D43D45 for ; Tue, 29 Jun 2004 16:51:53 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i5TGpGA3095250; Tue, 29 Jun 2004 11:51:16 -0500 (CDT) (envelope-from dan) Date: Tue, 29 Jun 2004 11:51:16 -0500 From: Dan Nelson To: Piotr Gnyp Message-ID: <20040629165116.GE81324@dan.emsphone.com> References: <20040629183657.O63478@discordia.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040629183657.O63478@discordia.pl> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: questions@freebsd.org Subject: Re: user is not logger in, but who claims something else X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 16:51:54 -0000 In the last episode (Jun 29), Piotr Gnyp said: > discordia# ps -auwx | grep diabeu > discordia# > > discordia# w > 18:37 up 8 days, 5:54, 9 users, load averages: 0,03 0,05 0,02 > USER TTY FROM LOGIN@ IDLE WHAT > toread p0 chello0621790851 18:26 - pine -i > diabeu po 213.134.140.150: 17:42 46 - > diabeu pp 213.134.140.150: 15:15 3:13 - > diabeu pt 213.134.140.150: 15:01 3:12 - > diabeu pu 213.134.140.150: 15:25 3:11 - w looks at the contents of /var/run/utmp, and if the user's login process dies unexpectedly then it doesn't clear the entry out of utmp. The next login to use that particular pty will overwrite the stale entry. Rebooting will fix it (of course), as will logging in a bunch of times or running enough screen sessions that ttyp[optu] are reused. -- Dan Nelson dnelson@allantgroup.com