From owner-freebsd-questions Wed Mar 29 16:37:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from node11a94.a2000.nl (node11a94.a2000.nl [24.132.26.148]) by hub.freebsd.org (Postfix) with SMTP id 5AC3537B5AB for ; Wed, 29 Mar 2000 16:37:00 -0800 (PST) (envelope-from ronald@node11a94.a2000.nl) Received: (qmail 93156 invoked from network); 30 Mar 2000 00:36:51 -0000 Received: from tulip.evertsen.nl (HELO tulip100.evertsen.nl) (10.0.0.6) by node11a94.a2000.nl with SMTP; 30 Mar 2000 00:36:51 -0000 Date: Thu, 30 Mar 2000 02:36:48 +0200 (CEST) From: Ronald Klop To: Jim Lawrence Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to get back into root In-Reply-To: <38E29F8E.2E1A4FC9@home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 29 Mar 2000, Jim Lawrence wrote: > Hi, > Now, when I try to log in as root, it runs the beginnings of a session > (the stuff you see before the command prompt), then gives the error > "/bin/bash - no such file or directory" and brings me back to the login > prompt. > > I can still log in as my username, but I can't get to any root > configuration-type things, and I don't have write access to /bin to > install the bash on. > > Any ideas on how I can get back in the system as root without > reinstalling? > > Any help is appreciated. > > Jim Lawrence > I know two options. Try su to switchuser to root. Or reboot. If the systems says something like 'waiting 9 seconds before booting' press the spacebar and type 'boot -s'. The system wil now boot single user (as root) and you don't need a password if you didn't change /etc/ttys. The default shell is than /bin/sh. Type 'mount -a' to mount every partition and change the shell of root. Type 'ctrl-d' and your system wil start to multiuser mode again. Succes, Ronald. -- Ronald Klop http://node11a94.a2000.nl/~ronald/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message