Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-08-2004, 10:44 AM   #1
LQ Newbie
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
Angry 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 :-)


Last edited by Tyraziel; 04-08-2004 at 10:46 AM.
Old 04-08-2004, 11:02 AM   #2
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
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)
Old 04-08-2004, 11:08 AM   #3
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell prints bad code when returning message backpacker Linux - Software 14 06-29-2005 03:53 AM
Bad blocks on /root partition sarysa Linux - Newbie 2 10-26-2004 04:17 PM
running as root is bad because?... breezewax Linux - Security 4 10-09-2004 06:00 PM
is running root bad??? zetsui Linux - Security 1 06-23-2003 03:30 AM
Is root really that bad? Crickit Linux - Software 25 04-18-2003 12:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration