From owner-freebsd-questions Thu Apr 16 03:35:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA03759 for freebsd-questions-outgoing; Thu, 16 Apr 1998 03:35:05 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA03737 for ; Thu, 16 Apr 1998 03:34:57 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id LAA00561; Thu, 16 Apr 1998 11:34:40 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <3535DEB9.8D546310@tdx.co.uk> Date: Thu, 16 Apr 1998 11:34:33 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Stuart Clarke CC: questions@FreeBSD.ORG Subject: Re: shell. URGENT URGENT URGENT References: <3535D946.751A8624@student.uq.edu.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Boot the machine in single-user mode (i.e. at the boot: prompt when the machines restarted type '-s' and press return)... The machine will startup - and then prompt with "Enter path to shell or ENTER for /bin/sh" (or similar) - press return... This will give you a root shell... Next do: mount -u / (which makes the root filesystem read/write), and then you should be able to do a 'chpass') Once you've edited the details either restart the machine (i.e. shutdown -r now) or just exit the shell... -- Does anyone know if this is on the www.freebsd.org site anywhere? - Seems to be asked a lot recently... ;-) -- Regards, Karl Pielorz Stuart Clarke wrote: > > Allright boys and girls, here's a doozy: > > I was logged in as root, and was playing around (using chpass) with what shell I > was using. I accidentally typed in the wrong path to a shell and now I can't > login as root any more (it says that it can't find the shell, and returns to the > login prompt). > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message