Date: Wed, 04 Mar 2009 00:01:19 -0500 From: Bryant Eadon <bryant.eadon@gmail.com> To: lacalling <lacalling@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: I cannot login coz bash is deinstalled Message-ID: <49AE0B1F.7000704@gmail.com> In-Reply-To: <49AE0A42.8010506@gmail.com> References: <de8d0ce00903032040l2a2e9c5o6e5f5f8cc9c177e1@mail.gmail.com> <49AE0A42.8010506@gmail.com>
index | next in thread | previous in thread | raw e-mail
Bryant Eadon wrote: > lacalling wrote: >> I forget to change shell before I deinstalled bash. >> A errer occurs when i try to login with my user or root. And it >> returns to >> login. >> >> I can only login in with single user mode which freebsd proovide, but few >> tools are provided. >> >> How can I change my shell to sh without logining? >> >> I have a debian cd which can bring me to its shell,but when i mount >> /dev/hda >> ,it says no such device. >> >> Thanks. > > Have you tried 'chsh -s /bin/sh' ? > mount /usr, it's in /usr/bin/chsh by default. > > This is one of the reasons to leave the root shell at a safe default. > Alternatively, a different super-user account could be created to avoid > this problem -- leaving root with it's mostly stock (safe) setup. > I should note that you'll need to be logged in as single user. And according to the man pages it should go something like this : /usr/bin/chsh -s /bin/sh root (not tested)help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49AE0B1F.7000704>
