You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

sudo su - sorry. What's wrong?

I'm studying PHP and MySQL. One of the directions for installing the MySQL stuff begins with opening Terminal, and entering sudo su. When I enter that it asks for my password. When I give it my password, it says sorry. Then any time after that, (I think it only goes back if I log out) it doesn't even ask for my password, it just comes back with su: Sorry. What could be going wrong?

Apple iMac Core Duo 2.0GHz 20 inch 2GB RAM, iPod nano 4th gen.

Posted on Jul 19, 2011 6:49 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 19, 2011 6:59 AM

Use this instead: "sudo -s". You have to be an administrator for it to work. Better yet, download a MySQL installer package and avoid the shell entirely.

4 replies

Jul 19, 2011 7:28 AM in response to Linc Davis

I'm in an administrator account. I have MAMP (http://mamp.info). It says this is to add these programs to the system path.


I'm using this book: http://www.sitepoint.com/books/phpmysql4/


Here's what happens when I try "sudo su": (it looks like the password area is blank, but I did type my password. It must just show up blank so you can't see the password)

User uploaded file

Here's what happens when I try "sudo" and then the code provided by the book.


User uploaded file


I may just forget about this and use my own web server at http://www.danielshamburger.com/ (already has PHP and MySQL and all that stuff) and make a /dev password protected directory.


Thanks!

sudo su - sorry. What's wrong?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.