From owner-freebsd-questions Tue Jun 27 10:10: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id E958837B75D for ; Tue, 27 Jun 2000 10:09:52 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id VAA30843; Tue, 27 Jun 2000 21:12:43 +0200 Message-ID: <3958E001.82953224@i-clue.de> Date: Tue, 27 Jun 2000 19:10:25 +0200 From: Christoph Sold Organization: i-clue interactive GmbH X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: worldly BSD Cc: Christoph Sold , freebsd-questions@FreeBSD.ORG Subject: Re: unable to login after changing shell as root References: <20000627152856.23632.qmail@web5305.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG worldly BSD wrote: > > Christopher, > > your example assumes that i made another user account. toor is a standard user account, installed along with all the other standard accounts. If root is listed in /etc/passwd, so will be toor. It is made for emergencies like yours -- but it has it's own login shell. Thus you will be able to restore a meaningful login shell setting for the root account. > yes, i know that i should have done that BEFORE i > started mucking around but i did not. i tried stopping > the bootup process and signing into single user mode > but i'm afraid i was unable to do anything ??? As a last resort: - boot into single user mode. You'll be asked which shell to use: type /bin/sh - install the shell you whish to use - change root's shell using chsh OTOH if there was just the "emergency holographic shell", it is just that: a staticallly linked sh out of the RAM disk image used to bootstrap the system. After reboot, this shell is gone, along with your RAM disk. Time to start the installation from the beginning. HTH -Christoph Sold > --- Christoph Sold wrote: > > worldly BSD wrote: > > > > > > while reading the handbook i decided to change my > > > shell by following the example > > > > > > " % chsh -s /usr/local/bin/bash" > > > > > > i was root at the time and everything seemed to go > > > ok but now i can not login because of the following > > > error > > > > > > "/usr/local/bin/bash: no such file or directory " > > > > > > any suggestion ? > > > > % su > > Password: > > # chsh -s /bin/sh > > # cd /usr/ports/shells/bash > > # make all install clean > > [snip] > > # ^D > > % su - > > bash-2.0# > > > > Alternatively, use the toor account to change roots' > > shell back to > > /bin/sh. > > > > First check if the shell you wish to use is > > installed in your system. -- i-clue GmbH, Endersbacher Str. 57, D-71334 Waiblingen Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message