LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 09-14-2009, 04:52 PM   #1
bianchiaz
LQ Newbie
 
Registered: Sep 2009
Location: Detroit
Distribution: Fedora 15 with LXDE window manager.
Posts: 7

Rep: Reputation: 0
Broke my login shell. Fresh install. No GUI installed yet.


I have been searching high and low for an answer to this and I am unable to find anything.

This is what happened.

I am going through the book "From Bash to Zsh, Conquering the command line" and I wanted to check if I had installed the Zsh. I went into /bin and did an ls. I saw sh was hard linked to a shell and I typed in
Code:
(gentoo)# sh
Instead of zsh by mistake.
By doing that i messed something up. after typing that "sh" the prompt changed to this.....
Code:
sh-3.2#
all text went to black and white (no color as before)

I tried getting back to my regular prompt by entering in
Code:
sh-3.2#/bin/bash
I end up with this prompt
Quote:
(none) bin #
(none) bin #su
bash: no job control in this shell
I have no idea what I did.

When i reboot everything gets mounted...but I can not log in as my user or root and end up with the "sh-3.2#" prompt.

Let me add here. This is a fresh 2009 install using minimal CD
Pentium 3 Desktop.
I have not added any software yet.
Kernel version 2.6.30-r6
Zsh was never installed.

Regards,
Rick

Last edited by bianchiaz; 09-14-2009 at 05:03 PM.
 
Old 09-14-2009, 07:28 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Neither typing sh nor /bin/bash will cause any changes that persist over reboot. Might you have entered any other commands?
 
Old 09-14-2009, 07:38 PM   #3
bianchiaz
LQ Newbie
 
Registered: Sep 2009
Location: Detroit
Distribution: Fedora 15 with LXDE window manager.
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Might you have entered any other commands?
This happened three days ago and I am just getting back to this issue.

I do not remember entering any other commands. I remember doing sh and it kicked me into the shell prompt described above.

Is there any way to extract my command line history from that session? I am in a (chroot) environment off the cd.

Rick
 
Old 09-14-2009, 09:40 PM   #4
bianchiaz
LQ Newbie
 
Registered: Sep 2009
Location: Detroit
Distribution: Fedora 15 with LXDE window manager.
Posts: 7

Original Poster
Rep: Reputation: 0
deleted

Last edited by bianchiaz; 12-26-2011 at 10:55 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot to a login shell instead of gui deostroll Linux - Software 8 08-26-2009 11:05 AM
Fresh Install of FC6: Can't login! Anthony903 Fedora 9 01-28-2007 03:49 PM
FC 4, installed XFree and broke the GUI daen Fedora 6 06-08-2006 01:59 AM
GUI is Fuzzy (Fresh Install) carlosinfl Debian 17 12-05-2005 09:56 PM
login problem on fresh install mobouser Mandriva 4 01-29-2005 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration