From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 05:54:27 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 0921416A4CE for ; Sat, 10 Jan 2004 05:54:27 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CEF643D2F for ; Sat, 10 Jan 2004 05:54:24 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i0ADsJfn001307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Jan 2004 13:54:19 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0ADsJdJ001306; Sat, 10 Jan 2004 13:54:19 GMT (envelope-from matthew) Date: Sat, 10 Jan 2004 13:54:19 +0000 From: Matthew Seaman To: hugle Message-ID: <20040110135419.GA1190@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , hugle , freebsd-questions@freebsd.org References: <71190286567.20040110152304@vkt.lt> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <71190286567.20040110152304@vkt.lt> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: turn off FreeBSD 5.1 machine? completely? 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: Sat, 10 Jan 2004 13:54:27 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 10, 2004 at 03:23:04PM +0200, hugle wrote: > How can I turn off machine completely? > cause it waits for CTRL+D of root pass.. =46rom multiuser state (ie. the normal operating state) become superuser and use the command: # shutdown -h now then wait until the "system is down" announcement, when you can hit the power button without fear of damaging the filesystems. Alternatively, and only if you have support for apm or acpi in your kernel and a compatible motherboard, you can type: # shutdown -p now which does exactly the same as 'shutdown -h' but goes on to power down the system automatically. This is safe to use if your system doesn't have the appropriate support -- it just halts the system but fails to either power down or (I think) tell you that the system is down. As it is, your system is waiting for the root password before it goes into single user mode -- you would get to that state either by typing plain 'shutdown' without, or by hitting the power button while the system was running, being unlucky enough to cause filesystem damage bad enough that the system can't automatically fix it, and then attempting to power on again and reboot. That it asks for a password then is due to changing the console entry in /etc/ttys from 'secure' to 'insecure'. Your choices are either to give the root password, which gets you into single user mode, or to hit Ctrl-D, which will cause the system to boot back into multiuser. Either way, once you've got to a shell prompt, then use the shutdown command as above to bring the system down cleanly. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAAAQLdtESqEQa7a0RAsvaAJ9k+5RWZUw06dYJcHG2nV9Tsxkl3QCeKBEp iAEsjAJZJMoV2N5XX5h780U= =px3Z -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--