From nobody@FreeBSD.ORG Fri Apr 30 11:36:06 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B8B1E15187; Fri, 30 Apr 1999 11:36:06 -0700 (PDT)
Message-Id: <19990430183606.B8B1E15187@hub.freebsd.org>
Date: Fri, 30 Apr 1999 11:36:06 -0700 (PDT)
From: cpeterso@cs.washington.edu
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: shutdown does not halt the machine. shutdown logs into root account without password.
X-Send-Pr-Version: www-1.0

>Number:         11406
>Category:       bin
>Synopsis:       shutdown does not halt the machine. shutdown logs into root account without password.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 30 11:40:01 PDT 1999
>Closed-Date:    Fri Apr 30 11:46:53 PDT 1999
>Last-Modified:  Fri Apr 30 11:47:05 PDT 1999
>Originator:     Christopher Peterson
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
>Environment:
>Description:
With a fresh installation of FreeBSD 3.1-RELEASE on an IBM ThinkPad 
i1440 notebook, halt and reboot both shutdown the machine correctly. 
shutdown does not.


myname# shutdown now
Shutdown NOW!
shutdown: [pid 242]
myname#

*** FINAL System shutdown message from root@myname.my.domain ***

System going down immediately


Apr 30 11:15:14 myname shutdown: shutdown by root:
Apr 30 11:15:14 myname shutdown: shutdown by root:

System shutdown time has arrived
Shutting down daemon processes:.
Apr 30 11:15:16 myname syslogd: exiting on signal 15
Enter full pathname of shell or RETURN for /bin/sh: 


If I use "shutdown +1" and immediately logout, I have the same problem. 
The machine is sitting at the login prompt when the shutdown time hits. 
The machine tries to shutdown, but then logs into the root account 
without a password!

login:
Apr 30 11:19:56 myname shutdown: shutdown by root:
Shutting down daemon processes:.
Apr 30 11:19:58 myname syslogd: exiting on signal 15
Enter full pathname of shell or RETURN for /bin/sh: 
# whoami
root
#



>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Fri Apr 30 11:46:53 PDT 1999 
State-Changed-Why:  
shutdown without any arguments brings the system into single-user mode. 
If you want it to halt, use "shutdown -h"; if you want it to reboot, use 
"shutdown -r"; if you want it to ask for the root password before    
going into single-user mode, edit /etc/ttys and change "secure" 
to "insecure" on the line that starts "console". 
>Unformatted:
