I am on Mac OS X 10.5. And I have setup my account so that I don't need to login. When I go to Network Preference click the 'lock' icon on the lower left corner. It prompts me user name and password. I enter my password and the lock icon becomes unlock.

But when I go to a shell and i enter 'su'.

I get $ su Password: su: Sorry

How can I find out what is my 'su' password?

Thank you.

link|improve this question

62% accept rate
feedback

2 Answers

up vote 6 down vote accepted

For suing you would ned the password of the target account, root in this case. But on Mac OS X, root doesn't have a password, su this will never work. You can however use sudo -i which will give you a root shell too. You need to enter your user's password there.

link|improve this answer
sudo -s works as well. It mnemonics out (sudo -s[hell]) better for my scatterbrain processes. – peelman Mar 9 '11 at 19:52
feedback

Enter sudo su. You can use your own password then.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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