New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - Terminal - Missing command prompt


Post Reply New Thread Subscribe

 
Thread Tools
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
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
QUOTE Thanks
mystic_fm

 
Member Since: Mar 15, 2007
Posts: 161
mystic_fm will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.33GHz C2D, 2GB RAM

mystic_fm is offline
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)?
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
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
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
dsAttrTypeNative:shell: /bin/bash

That's all the command returned. Nothing like "mikeMbp:etc mike$ dscl . -read /Users/mike shell" was displayed.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Wow, so it just gives you a usage statement. Hmm.. Do you have any other users on the system?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
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.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Ok, so it does return /bin/bash... you have a defined shell, great!

what does an ls -l /bin/bash show?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
Quote:
Originally Posted by Dysfunction View Post
Ok, so it does return /bin/bash... you have a defined shell, great!

what does an ls -l /bin/bash show?
-rwxr-xr-x 1 root wheel 1244928 May 31 2008 /bin/bash
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
Removing the php.ini made not difference
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Has this been persistent through a reboot?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
sorry for being a noob.

What do you mean by persistent through a reboot? How can I tell?
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,620
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Have you rebooted your computer?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
AR3Y35

 
Member Since: Feb 08, 2009
Posts: 8
AR3Y35 is on a distinguished road

AR3Y35 is offline
Yes I have.

I've also turned Web Sharing off, rebooted, and launched Terminal again...no luck
QUOTE Thanks

Post Reply New Thread Subscribe


« Stuck On The Gray Apple Screen - Won't Start | OS X 10.4 Installation »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
C++ in terminal frike OS X - Development and Darwin 2 04-04-2008 10:52 AM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 10:04 AM
Terminal Problem WROC OS X - Apps and Games 5 01-09-2007 04:01 PM
iChat and Missing Sync BushyMark Switcher Hangout 0 09-02-2006 06:05 PM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 12:18 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?