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:53 AM

Don't use sudo su but only "sudo". You don't want to go into super user mode like in Linux, MacOS is slightly different, you want to act like one as administrator. You might need to use "sudo" in from of every commando though.

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!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.