Bad root shell
In trying to change my root shell from bash to tcsh i spelled /bin/tcsh wrong (as /bin/tsch) and now I can not su to root. Is there an easy way to fix this without reinstalling my whole system? I have done a lot of setup work and it would be a pain to redo everthing from one small typo. Thanks for your help :-)
~~Tyraziel |
Boot with a LiveCD like Knoppix, open a root console, mount your hard-disk, and fix your /etc/passwd (or whatever file you screwed up)
|
At the linux boot prompt, you can also give the option init=/bin/bash which will boot you right into a bash shell. From there you can easily change it.
|
All times are GMT -5. The time now is 10:52 AM. |