From owner-freebsd-questions Tue Jun 5 20:35:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from comp1.mastery.ca (comp1.mastery.ca [209.202.88.60]) by hub.freebsd.org (Postfix) with ESMTP id AE24637B401 for ; Tue, 5 Jun 2001 20:35:41 -0700 (PDT) (envelope-from mail@max-info.net) Received: from 78kw954 (dyn216-8-130-5.ADSL.mnsi.net [216.8.130.5]) (authenticated) by comp1.mastery.ca (8.11.3/8.11.1) with ESMTP id f563ZSL06501; Tue, 5 Jun 2001 23:35:28 -0400 (EDT) (envelope-from mail@max-info.net) Message-ID: <000601c0ee39$75a0e880$3200a8c0@Home> From: "Ryan Masse" To: "Bud Roth" Cc: "FreeBSD-Questions" References: <20010606003843.51301.qmail@web10005.mail.yahoo.com> Subject: Re: hacked /etc/passwd and can't reboot Date: Tue, 5 Jun 2001 23:33:29 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 use the 'chsh $user' command next time.. that way if you enter something in wrong it will let you know and not allow a bad entry to be written Ryan > Thank you for your help. I am all set. Next time, > I'll edit one user account and test it! I learned my > lesson. :-) > > Bud > > --- Ryan Masse wrote: > > When you first boot the system you should see the 10 > > second countdown. press > > any keey but enter. you should get to a prompt. > > > > Then: > > > > boot -s > > mount -a > > vi /etc/passwd <- make your changes > > pwd_mkdb -p /etc/master.passwd > > exit > > > > > > done > > > > > > > > > Please excuse my ignorance. I know _what_ single > > user > > > mode is, but not _how_ to get there. How do I > > force > > > FreeBSD to boot into single user mode? > > > > > > Bud > > > > > > --- Ryan Masse wrote: > > > > boot into single user mode and edit the file > > > > > > > > Ryan > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Get personalized email addresses from Yahoo! Mail > > - only $35 > > > a year! http://personal.mail.yahoo.com/ > > > > > > > > > > __________________________________________________ > 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