From owner-freebsd-stable@FreeBSD.ORG Tue Apr 9 10:07:39 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 565B89C for ; Tue, 9 Apr 2013 10:07:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 0F711EA9 for ; Tue, 9 Apr 2013 10:07:38 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1UPVSY-0005Hj-Jm; Tue, 09 Apr 2013 13:07:26 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: Jeremy Chadwick Subject: Re: Ghosted logins in w/who In-reply-to: <20130409022837.GA95155@icarus.home.lan> References: <20130409015643.0817D10E2C8@smtp.hushmail.com> <20130409022837.GA95155@icarus.home.lan> Comments: In-reply-to Jeremy Chadwick message dated "Mon, 08 Apr 2013 19:28:37 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Apr 2013 13:07:26 +0300 From: Daniel Braniss Message-ID: Cc: damonray@mac.hush.com, freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 10:07:39 -0000 > On Mon, Apr 08, 2013 at 08:56:42PM -0500, damonray@mac.hush.com wrote: > > I recently upgraded to FreeBSD 9.1-STABLE, and there was a strange > > added side effect. > > Users that telnet into the machine seem to have their logins forever > > ghosted in who/w. > > If a user connects via telnet, then logs out, their login still > > remains in the w/who. If another user logins in with the pty they had, > > whatever they do also shows up in the ghosted w/who of the previous > > user using that pty. > > For example: > > User X logs in, runs BitchX. Detaches the process and logs out.User Y > > logs in, gets assigned User X's previous pty, who/w now reports that > > user is running BitchX. That user has no access to the BitchX session > > or anything, it's just being displayed weird in who/w. > > I seem to remember this problem like a decade ago and I had written a > > script or there was a script that passed around called clearlogin. > > Any ideas? Thanks all!Damon > > Is GNU screen involved? It sounds like it. > > Try to repeat the problem without GNU screen. something changed beteen 8 and 9 with respect of handling of utmp, I tried to research this but got bogged down with other things. danny