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?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
No need to make up a root password. Try
and type your user password.
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.
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.
The root password on OS X is disabled; it is not the same as your
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.
su program expects you to supply the password of the user you become.
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.
sudo is much better; it doesn't require shared passwords.
Based on my experience:
Unless the account you are logged in as has "admin" privileges, you are not allowed to
What I did is create a second account "Administrator" (admin) that has admin privileges then
and then the shell I'm in is root.
My advice: Modify the file
/etc/pam.d by inserting the group you intend to enable for su-ing the root to
pam_group.so group=admin,<yourgroup> where
<yourgroup> may be
staff (=standard users) for example.
In order to do this you have to be root already (admin is not sufficient).
If you want, you can enable the root user (and set a password) like that.
People will recommend to use