From owner-freebsd-current@FreeBSD.ORG Mon Jun 23 07:46:05 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A050637B401 for ; Mon, 23 Jun 2003 07:46:05 -0700 (PDT) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFDF543FE9 for ; Mon, 23 Jun 2003 07:46:03 -0700 (PDT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3p2/8.12.3) with ESMTP id h5NEk1pV083759; Mon, 23 Jun 2003 18:46:01 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3p2/8.12.3/Submit) id h5NEk0ko083758; Mon, 23 Jun 2003 18:46:00 +0400 (MSD) (envelope-from yar) Date: Mon, 23 Jun 2003 18:46:00 +0400 From: Yar Tikhiy To: Morten Rodal Message-ID: <20030623144600.GA83185@comp.chem.msu.su> References: <20030619132028.GA1493@atlantis.rodal.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030619132028.GA1493@atlantis.rodal.no> User-Agent: Mutt/1.5.3i cc: freebsd-current@freebsd.org Subject: Re: Recent getty(8) changes clobbers w(1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 14:46:05 -0000 On Thu, Jun 19, 2003 at 03:20:28PM +0200, Morten Rodal wrote: > After the recent getty(8) changes w(1) will now show root logins on > the same ttys if you use su(1). However, after logging out the root > user is not removed from the w(1) (or who(1) for that matter). > > Example output from w(1) where tty p0 and p4 have been used to login > with root, and currently logged out while p2 is still logged in. > > [atlantis] ~> w > 3:17pm up 5:44, 8 users, load averages: 0,02 0,15 0,31 > USER TTY FROM LOGIN@ IDLE WHAT > root p0 - 9:40am - vi > root p2 - 3:11pm 2 -su (csh) > root p4 - 3:14pm - w > morten p0 :0.0 3:10pm - vi > morten p1 :0.0 9:46am 2 irssi > morten p2 :0.0 3:10pm 2 -su (csh) > morten p3 :0.0 3:10pm 6 ssh slimy > morten p4 :0.0 3:11pm - w > > As far as I know this started after the getty(8) changes, but it could > be some other changes as while. Am I the only one seeing this? Thanks for reporting this, but I've been unable to reproduce the problem. Moreover, getty(8) is neither responsible for updating utmp(5) nor used on pseudo terminals, so my recent changes to getty(8) could hardly introduce the problem you were observing. A possible reason for it might be that your utmp(5) file got broken in some way. -- Yar