Date: Thu, 23 Jul 2009 15:12:00 +0100 From: "Daniel Bye" <danielby@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: Can't login to the system...! Message-ID: <20090723141200.GG22171@torus.slightlystrange.org> In-Reply-To: <d4a469990907230656g2b3e6196s4f27f1987fe8a441@mail.gmail.com> References: <d4a469990907230656g2b3e6196s4f27f1987fe8a441@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Thu, Jul 23, 2009 at 04:56:35PM +0300, thanos trompoukis 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.
You mangled the path to bash in the chsh command - note the absense of a
leading /
Become root using su, then change your root shell back to /bin/tcsh:
# chsh -s /bin/tcsh
All should now be well.
Dan
--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)
iEYEARECAAYFAkpob7AACgkQixf5fBYiFmo/pgCdE+TUzRuuw3Ou0eGepj87kKgz
/KQAoL2SqpytQI5cvc1hR4XXSWmIRM2w
=cs9G
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090723141200.GG22171>
