On Thu, 23 Jul 2009 16:56:35 +0300, thanos trompoukis <atr0...@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, ... _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"