Locked out - need a little help (caution: n00b meter on high!)

Peter Avalos pavalos at theshell.com
Sat Jul 29 23:34:43 PDT 2006


On Sun, Jul 30, 2006 at 07:53:22AM -0600, Gergo Szakal wrote:
> Yeah, I was stupid. I have set the default shell to /usr/pkg/bin/bash
> and started an upgrade of packages in the evening which has removed bash
> as well, obviously. All would have been good if DragonFly didn't spit
> out some race error (v 1.5.4 yet, was just about to start
> buildworld/buildkernel for 1.6.0, of course I cannot report it :-P)
> making the build processes fail somewhere, leaving me with no bash
> installed but bash as default shell for my root account and regular
> account as well. If I follow the instructions at
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FORGOT-ROOT-PW
> 
> , then when I chsh, vi does not display things properly (will fiddle
> around with this later of course, if I cannot help it any other way, I'm
> just in a hurry now), so I cannot edit the info. All I could find out is
> to get the bash package written to some removable medium and install it
> from there. Is there some other, simpler way - perhaps involving the livecd?

Since the n00b meter was pegged, I'm assuming you don't know about manual
pages: 'man chsh' could have helped you figure this out:

chsh -s /bin/sh

--Peter
Attachment:
pgp00017.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00017.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20060729/1d41cbba/attachment-0021.obj>


More information about the Users mailing list