Terminal - Missing command prompt

Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
I'm not getting a command prompt in the Terminal app (Applications/Utilities). When I launch Terminal all I get is one line...

Last login: Sun Feb 8 08:22:27 on ttys003.

Right below that line is a solid cursor. When I press ENTER the only thing that happens is that the cursor skips to the next line. How do I get my command prompt back?

The last thing I did on Terminal was execute the following lines...
cd /private/etc
sudo cp php.ini.default php.ini


Please help. Thanks
 
Joined
Mar 15, 2007
Messages
161
Reaction score
4
Points
18
Your Mac's Specs
17" MacBook Pro, 2.33GHz C2D, 2GB RAM
When you type a command into this "no command prompt" Terminal, is the command executed? I.e., does "ls<ENTER>" give you a list of directory contents (with no command prompt afterwards)?
 
OP
A
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
No, when I type "ls" and press ENTER in the "no command prompt" Terminal the cursor just skips to the next line and nothing else seems to happen.

Commands to work via Shell -> New Command
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
it sounds like somehow your account doesn't have a valid shell. If you do a Shell -> new command -> dscl . -read /Users/<username> shell

what does it say?


btw it should come back with something like...

mikeMbp:etc mike$ dscl . -read /Users/mike shell
dsAttrTypeNative:shell: /bin/bash
 
OP
A
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
dsAttrTypeNative:shell: /bin/bash

That's all the command returned. Nothing like "mikeMbp:etc mike$ dscl . -read /Users/mike shell" was displayed.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Wow, so it just gives you a usage statement. Hmm.. Do you have any other users on the system?
 
OP
A
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
Yes, in addition to the Admin account that I'm using, I have a Guest and Standard as well. All accounts have the same problem. I've even created a 2nd Admin account only to find the same problem there. The 2nd Admin account has been deleted.

Terminal has worked with my Admin, Guest and Standard account.

I first notice the problem when I activated PHP on Apache.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Ok, so it does return /bin/bash... you have a defined shell, great!

what does an ls -l /bin/bash show?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
well, looks like that's all there. I can not think of any reason that changing the php.ini would prevent you from logging in and gaining a shell. You could try removing the php.ini

mv /private/etc/php.ini /private/etc/php.foo
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Has this been persistent through a reboot?
 
OP
A
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
sorry for being a noob.

What do you mean by persistent through a reboot? How can I tell?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Have you rebooted your computer?
 
OP
A
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Points
1
Yes I have.

I've also turned Web Sharing off, rebooted, and launched Terminal again...no luck
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
hrm, have you tried repairing permissions and running maintenance scripts? (periodic daily weekly monthly)
 
Joined
Jan 12, 2009
Messages
1,096
Reaction score
19
Points
38
Location
Prague, Czech Republic
Your Mac's Specs
2,4Ghz 15" unibody
so if I understood you posts right, when the Terminal starts, it is already being used by something in the background?

if that is true, try "ps -a" to see what has a terminal assigned


EDIT:
ok, something silly, try to open a new tab :D
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top