LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-08-2004, 09:44 AM   #1
Tyraziel
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 :-)

~~Tyraziel

Last edited by Tyraziel; 04-08-2004 at 09:46 AM.
 
Old 04-08-2004, 10:02 AM   #2
spurious
Member
 
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, 10:08 AM   #3
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

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


Reply


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 02:53 AM
Bad blocks on /root partition sarysa Linux - Newbie 2 10-26-2004 03:17 PM
running as root is bad because?... breezewax Linux - Security 4 10-09-2004 05:00 PM
is running root bad??? zetsui Linux - Security 1 06-23-2003 02:30 AM
Is root really that bad? Crickit Linux - Software 25 04-18-2003 11:33 AM


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

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