LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-23-2003, 10:18 AM   #1
xyfan
LQ Newbie
 
Registered: Oct 2003
Location: Hong Kong SAR
Distribution: redhat 9.0
Posts: 9

Rep: Reputation: 0
Unhappy bash problem: no prompt


I'm using RH9.0. After upgrading the kernel to 2.4.22, all seems well except that when i login as a normal user, I get no prompt in the gnome-terminal. And whatever i type in, it does not function, just leaving me blank.(you probably could do nothing if you can't use the terminal under linux). Surprisingly, it works all right if i log in as root.
Any hints to solve the problem?
Thanks so much!!!!!!!!
 
Old 11-23-2003, 01:49 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Do any other terminals work as a regular user? xterm, aterm, etc?
 
Old 11-25-2003, 06:13 AM   #3
xyfan
LQ Newbie
 
Registered: Oct 2003
Location: Hong Kong SAR
Distribution: redhat 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
No, any other terminal will not run as a regular user.
 
Old 11-25-2003, 08:39 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
That could be a number of things. Maybe you don't have a PS1 set. Try logging in as root and editing /home/user/.bashrc. If their is no such file then create one and add the following to it:

PS1='[\u@\h \w]# '

make sure the .bashrc file is owned by the user.

Maybe that will fix it.
 
Old 11-25-2003, 08:58 AM   #5
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 30
If you somehow have set a shell that doesn't exist, the terminals won't do very much either. Check your /etc/passwd file and see what shell you've set for your user(s). Make sure it is a full path (e.g. "/bin/bash" and not only "bash"), and that it is properly spelled.
 
Old 11-25-2003, 11:08 AM   #6
xyfan
LQ Newbie
 
Registered: Oct 2003
Location: Hong Kong SAR
Distribution: redhat 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
I've tried both of your methods, unfortunately, the problem still exists.
Any more suggestion?

Thanks!
 
Old 11-25-2003, 11:15 AM   #7
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 30
I was thinking...try hitting ctrl-c when you start a terminal and nothing happens. Maybe it just gets stuck on something when it's reading the configuration files?
 
  


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
bash prompt subG Slackware 6 01-18-2006 04:43 PM
bash prompt problem akudewan Slackware 7 03-09-2005 07:21 AM
bash prompt problem jackpal Linux - Software 6 02-04-2004 11:37 AM
help with bash prompt everythingand2 Linux - Newbie 7 12-06-2003 04:28 PM
Bash Prompt mandraketux Mandriva 2 11-28-2003 10:05 PM


All times are GMT -5. The time now is 07:07 PM.

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