Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I get this:

Macintosh:8.4 TAmoyal$ su
Password:
su: Sorry
Macintosh:8.4 TAmoyal$

I typed in the password I use for sudo. Why won't this work?

Thanks!

share|improve this question

6 Answers 6

up vote 19 down vote accepted

No need to make up a root password. Try sudo su and type your user password.

share|improve this answer
3  
'sudo su -' will work just fine. Don't set the root password unless you have to. –  J.Zimmerman Jul 21 '09 at 6:53
    
On newer sudo releases, sudo -i is the same as sudo su -. –  koenigdmj Jul 21 '09 at 19:08
    
sudo su is only alowed if your account has admin privileges .. comming from the windows world => I don't work that way :-) –  lexu Aug 4 '09 at 5:12

Others have mentioned the details of the root account. However, you don't even need su. Just use sudo -i and you get an interactive root console anyway.

share|improve this answer

For su you need to enter root password. For sudo you have to enter your own password and you should be listed in sudoers list. Since you have not set root password or root password is different then your password, su is not accepting your password.

share|improve this answer

The root password on OS X is disabled; it is not the same as your sudo password.

Say sudo passwd root if you want to make a root password, then su will work as desired. However, make this password differ from your regular user password in the interest of security.

share|improve this answer

The su program expects you to supply the password of the user you become.

The sudo program expects you to provide your own password. The configuration file for sudo controls what you can do with it. With su, knowledge of the other persons password is sufficient.

Using sudo is much better; it doesn't require shared passwords.

share|improve this answer

Based on my experience:

Unless the account you are logged in as has "admin" privileges, you are not allowed to "su" or "sudo".

What I did is create a seccond account "Administrator" (admin) that has admin privileges then

  • su admin
  • enter admin's password
  • sudo su -
  • enter admin's password

and then shell I'm in is root.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.