LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   bash problem: no prompt (https://www.linuxquestions.org/questions/linux-general-1/bash-problem-no-prompt-119174/)

xyfan 11-23-2003 10:18 AM

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!!!!!!!!

trickykid 11-23-2003 01:49 PM

Do any other terminals work as a regular user? xterm, aterm, etc?

xyfan 11-25-2003 06:13 AM

No, any other terminal will not run as a regular user.

Crashed_Again 11-25-2003 08:39 AM

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.

Bebo 11-25-2003 08:58 AM

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.

xyfan 11-25-2003 11:08 AM

I've tried both of your methods, unfortunately, the problem still exists.
Any more suggestion?

Thanks!

Bebo 11-25-2003 11:15 AM

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?


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