Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2000 10:24:34 -0700 (PDT)
From:      worldly BSD <worldlybsd@yahoo.com>
To:        Christoph Sold <so@server.i-clue.de>
Cc:        Christoph Sold <so@server.ms-agentur.de>, freebsd-questions@FreeBSD.ORG
Subject:   Re: unable to login after changing shell as root
Message-ID:  <20000627172434.5687.qmail@web5303.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Christopher,

Thanks for your help and solutions.


--- Christoph Sold <so@server.i-clue.de> wrote:
> 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 <so@server.i-clue.de> 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


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000627172434.5687.qmail>