Can't login to the system...!
danielby at slightlystrange.org
Thu Jul 23 14:12:30 UTC 2009
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)
> 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
Become root using su, then change your root shell back to /bin/tcsh:
# chsh -s /bin/tcsh
All should now be well.
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090723/92bab0cc/attachment.pgp
More information about the freebsd-questions