From owner-freebsd-questions Thu Jan 27 6:57:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.twave.net (twave.net [206.100.228.5]) by hub.freebsd.org (Postfix) with SMTP id 33F8A15658 for ; Thu, 27 Jan 2000 06:57:04 -0800 (PST) (envelope-from brameld@twave.net) Received: from [208.219.234.35] by mail.twave.net (NTMail 3.03.0018/1.abwg) with ESMTP id fa223423 for ; Thu, 27 Jan 2000 09:55:18 -0500 Message-ID: <38905CB8.8483DF9D@twave.net> Date: Thu, 27 Jan 2000 09:56:56 -0500 From: Walter Brameld X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Jonkman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Root login shell problem References: <200001271435.JAA11482@akiva.homer.att.com> <007a01bf68d5$97f4f880$350a0a0a@bussert.com.Bussert> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Jonkman wrote: > > I made a typo in my root chsh to point it to /bin/bash rather than > /usr/local/bin/bash. As a result I'm locked out of my root account. Even if > I login as root from the console it kicks me back out to a login. > > I don't know much about single user mode. Will this allow me to get back in > to change the shell? > > Thanks > ========================================= > > Matthew Jonkman > Single user mode: At the boot prompt, type boot -s. Hit return to enter /bin/sh. Perform the following steps to mount all your file systems read-write: # fsck -p # mount -u / # mount -a -t ufs # swapon -a To quote from the FreeBSD handbook, "This checks the filesystems, remounts / read/write, mounts all the other UFS filesystems referenced in /etc/fstab and then turns swapping on." -- Walter in·tel·lec·tu·al n. Someone who has been educated past his/her level of intelligence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message