From owner-freebsd-questions Tue Jun 5 14:25:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from discus.nl.uu.net (discus.nl.uu.net [193.67.79.178]) by hub.freebsd.org (Postfix) with ESMTP id BE1EF37B401 for ; Tue, 5 Jun 2001 14:25:46 -0700 (PDT) (envelope-from arjan@jak.nl) Received: from 1Cust239.tnt32.rtm1.nl.uu.net ([213.116.158.239]:1096 "EHLO jak.nl") by discus.nl.uu.net with ESMTP id ; Tue, 5 Jun 2001 23:25:26 +0200 Message-ID: <3B1D4E5E.665DCB98@jak.nl> Date: Tue, 05 Jun 2001 23:25:50 +0200 From: Arjan Knepper Organization: JAK++ Software Development B.V. X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Bud Roth Cc: questions@freebsd.org, Gary Nye Subject: Re: hacked /etc/passwd and can't reboot References: <20010605212017.45515.qmail@web10004.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Boot in su mode see handbook on the web site for instructions. You should be able to mount the filesystems and vipw the password file in the sh shell. Good luck Arjan Bud Roth wrote: > I wanted FreeBSD to boot into bash, not sh, so I > changed the default shell for the two users on my > system (bud and root) in the file /etc/passwd from > /bin/sh to /bin/bash. Stupid me. Either bash is not > in /bin or it just won't work. The result is that I > cannot log in. How can I either reboot off of a > floppy and edit passwd to take out the offensive "ba" > or use the command prompt that FreeBSD temporarily > gives me when booting up to do the same? > > Silly mistake on my part, I confess. 8-( > > Any help would be most appreciated. > > Bud > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > 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