Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2009 16:05:40 +0200
From:      Polytropon <freebsd@edvax.de>
To:        thanos trompoukis <atr0x23@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't login to the system...!
Message-ID:  <20090723160540.81a8e8c3.freebsd@edvax.de>
In-Reply-To: <d4a469990907230656g2b3e6196s4f27f1987fe8a441@mail.gmail.com>
References:  <d4a469990907230656g2b3e6196s4f27f1987fe8a441@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Jul 2009 16:56:35 +0300, thanos trompoukis <atr0x23@gmail.com> 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
	Password:
	# 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.




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



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