LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Bad root shell (https://www.linuxquestions.org/questions/linux-general-1/bad-root-shell-167753/)

Tyraziel 04-08-2004 09:44 AM

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

spurious 04-08-2004 10:02 AM

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)

Bebo 04-08-2004 10:08 AM

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.