From nobody@FreeBSD.org  Wed Sep 25 11:15:00 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 65C2E37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Sep 2002 11:15:00 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1C17243E9C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Sep 2002 11:15:00 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g8PIEx7R072855
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Sep 2002 11:14:59 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g8PIExke072854;
	Wed, 25 Sep 2002 11:14:59 -0700 (PDT)
Message-Id: <200209251814.g8PIExke072854@www.freebsd.org>
Date: Wed, 25 Sep 2002 11:14:59 -0700 (PDT)
From: tig <tigger@onemoremonkey.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect report from 'who' after 'shutdown now' from remote terminal
X-Send-Pr-Version: www-1.0

>Number:         43367
>Category:       bin
>Synopsis:       incorrect report from who(1) after 'shutdown now' from remote terminal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 25 11:20:01 PDT 2002
>Closed-Date:    Fri Oct 15 22:54:22 UTC 2010
>Last-Modified:  Fri Oct 15 22:54:22 UTC 2010
>Originator:     tig
>Release:        4.7-RC
>Organization:
n/a
>Environment:
FreeBSD piglet.l--v--l.net 4.7-RC FreeBSD 4.7-RC #0: Sun Sep 22 15:48:40 CEST 2002     root@piglet.l--v--l.net:/usr/obj/usr/src/sys/PIGLET  i386
>Description:
Using 'who' (or 'users' or 'w') command when in single user mode will display non-connected users who where connected at the time of a 'shutdown now'. These users are now no longer connected or logged in which is why I believe this is a bug.

From the 'man who' page:
The who utility displays information about currently logged in users.

It appears that 'shutdown now' does not correctly update /var/run/utmp.

If this IS the desired response from a 'shutdown now', followed by a 'who', then I apologise, but find it mis-leading.

>How-To-Repeat:
Login from a remote system
either from the remote terminal or from a local terminal issue a 'shutdown now'
Once in single user mode, issue a 'who', 'w' or 'users'. This will display the ghost users.
>Fix:
n/a
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jilles 
State-Changed-When: Sun Aug 1 17:32:07 UTC 2010 
State-Changed-Why:  
I cannot reproduce this on 7-stable or 9-current. 
Does this still happen for you? (I agree it would be a bug.) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43367 
State-Changed-From-To: feedback->closed 
State-Changed-By: jilles 
State-Changed-When: Fri Oct 15 22:54:21 UTC 2010 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43367 
>Unformatted:
