From owner-freebsd-questions Fri Apr 17 02:58:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA19620 for freebsd-questions-outgoing; Fri, 17 Apr 1998 02:58:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19599 for ; Fri, 17 Apr 1998 09:58:09 GMT (envelope-from bkogawa@primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id CAA18693; Fri, 17 Apr 1998 02:58:08 -0700 (MST) Received: from ip193.sjc.primenet.com(206.165.96.193), claiming to be "foo.primenet.com" via SMTP by smtp03.primenet.com, id smtpd018562; Fri Apr 17 02:57:52 1998 Received: (from bkogawa@localhost) by foo.primenet.com (8.8.8/8.8.6) id CAA00564; Fri, 17 Apr 1998 02:57:33 -0700 (PDT) Date: Fri, 17 Apr 1998 02:57:33 -0700 (PDT) Message-Id: <199804170957.CAA00564@foo.primenet.com> To: s334761@student.uq.edu.au Subject: Re: shell. URGENT URGENT URGENT Newsgroups: localhost.freebsd.questions References: <3535D946.751A8624@student.uq.edu.au> From: "Bryan K. Ogawa" Cc: freebsd-questions@FreeBSD.ORG X-Newsreader: NN version 6.5.0 #1 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In localhost.freebsd.questions you write: >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). >I've only created one other user since installing BSD, and it doesn't >have any privelages to speak of. >How the hell can I get to log in as root again? If I could only get >to the /etc/passwd file! at the boot prompt, use the -s option to boot single user. This will give you a prompt which should ask you for which shell to use. After this, do a mount -a to mount your drives, then you should be able to use chpass to recover. -- bryan k ogawa http://www.primenet.com/~bkogawa/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message