Can't login to the system...!

Polytropon freebsd at
Thu Jul 23 14:05:48 UTC 2009

On Thu, 23 Jul 2009 16:56:35 +0300, thanos trompoukis <atr0x23 at> wrote:
> Hi all, I am a noobie here.
> I was in the system as root and I type this command:
> chsh -s usr/local/bin/bash (without reason,by mistake)
> when I reboot the system I give username & password  and I see this:
> login:  usr/local/bin/bash:  No such file or directory
> FreeBSD/i386  (leonidas.MSHOME) (ttyv0)
> login:
> But I can access the system as another user, and
> when I type *su* I can login as root fine.
> I have no idea what i've done. Give me your lights please.

Just change back the shell to the standard dialog shell,
which is the C shell /bin/csh. If you intendedly want to
use a different shell when working as root, consider using
the toor account and change the shell of toor. Do not change
the shell of root.

Login as any user. Then:

	% su root
	# chsh
	... change back to csh ...
	# exit
	% exit

Now you can login as root again.

Note that you missed the leading / in the BASH name, as
the login message states:

> login:  usr/local/bin/bash:  No such file or directory

The correct path is /usr/local/bin/bash. And you can use
this path for toor, no problem at all.

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list