Date: Wed, 27 Aug 2003 17:06:13 +0100 From: "Markie" <markie@notwentytwo.freeserve.co.uk> To: "Charles Howse" <chowse@charter.net>, "'thomas may'" <thomas.may@x9media.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: no root login after changing shell Message-ID: <003601c36cb5$24dcdb00$e400a8c0@ape> References: <005a01c36cb3$e07d26f0$04fea8c0@moe>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Charles Howse" <chowse@charter.net> To: "'thomas may'" <thomas.may@x9media.com>; <freebsd-questions@FreeBSD.ORG> Sent: Wednesday, August 27, 2003 4:57 PM Subject: RE: no root login after changing shell > i wanted to change the shell for user root to bash. > in the freebsd online handbook i found this command: > > # echo "/usr/local/bin/bash" >> /etc/shells > > > but what i didnt know at this moment, that i have to install bash > before. > so i logged of as user root and get now on login the following error: > > su: /usr/local/bin/bash: No such file or directory > > can anybody please help me ... > thanx Type 'boot -s' at the 10 second count down to boot to single user mode, it should ask you for the shell you want to use I think, the default being /bin/sh so you should be able to hit enter. You'll have to mount your partitions read/write, something like `mount -rw /`, if /usr is a seperate partition I think you will also need to mount this for vi and such... you should then be able to type `chsh -s /bin/tcsh` (on second thoughts maybe you don't need vi for this) to change the shell for root back, reboot and login (unless I missed something out) :o)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003601c36cb5$24dcdb00$e400a8c0>