0

I am facing a very strange error. I was using fish shell with oh-my-fish (https://github.com/bpinto/oh-my-fish) and I tried to change my command line to bash using:

$ chsh -s /bin/bash [my_username]

after that, the command prompt stack! And after a restart there is no shell at all. Command line opens but no command works. Since there is no shell available I do not know how to bring back any available shell. There is no error anywhere.

I tried to edit manually the /etc/passwd and change the shell there but still no luck. Also, run the chsh command with another session from another admin user. Nothing happens.

Using Ubuntu 14.04.

  • If bash works OK from another user account, and your login shell is set to bash, then isn't it more likely that there is some configuration setting that's at fault? Perhaps try restoring a 'clean' .bashrc and .profile to your account from the /etc/skel/ directory? – steeldriver Feb 5 '15 at 20:11
  • @steeldriver Your suggestion was true. Actually it was a config error after I have removed rvm. Thanks a lot! – TheodorosPloumis Feb 5 '15 at 21:25
  • @steeldriver: Could you please convert that to an answer so that schmucks like me who go around hunting for unanswered questions don't have to look at this one any more. ;-) (And I'll upvote if you drop me a note and it's a good one too!) – Fabby Feb 9 '15 at 15:31
0

Answer copied from comments:

If bash works OK from another user account, and your login shell is set to bash, then isn't it more likely that there is some configuration setting that's at fault? Perhaps try restoring a 'clean' .bashrc and .profile to your account from the /etc/skel/ directory!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.