Can't login as Super User



In 4K78, in the terminal I can't login as su.

Has anyone succeeded with this? It was easy in PB but now i don't know.



The problem your having is that the root user is disabled by default in the newer builds. Search the forum to find out how to enable root under the newer builds. You have to use Netinfo.


Puny Member
Better yet don't.

Finder is designed to run as either admin or non-admin, not root.

If you need to run something as root use sudo


House pianist
Finder may be designed that way, but Darwin certainly isn't. It can be a hassle to have to append sudo to a series of commands if you're carrying out a lot of actions as root.

When VGZ says that root is disabled, he means that there's by default no usable password for root, so that you can't su. What you need to do is add your own password to the root entry in NetInfo Manager.

Here's what to do:

1. Open up NetInfo Manager in Utilities. Find the users group, and within that, the root entry. You'll see a table of properties and values in the bottom half of the window. You'll see "*" entered for passwd. You need to replace this with an ENCRYPTED (not plaintext) version of the root password you want to assign.

2. In a shell, use htpasswd to generate an encrypted password for you. You can use the flag -n to force htpasswd to output the results to the screen. You can also use the flag -b to simplify the process by including the password on the command line:

% htpasswd -nb anylogin mypassword

3. Copy the string that follows the colon: this is your encrypted password.

4. Back in NetInfo Manager, click the lock and login as an admin-level user to make changes. Then double-click on the "*" entry for the root password. You'll be able to paste your new encrypted password. Now save your changes and quit NetInfo Manager.

5. Test your new password by su-ing in the shell.

Hope this works for you.




You can also use the installer and password reset to set the root password.

Boot into the install CD and select the password will be presented with a menu with all of the users listed...choose (or add if it soesn't show up) root, and add the password of your choice. Just remember you can really REALLY muck things up as root....the system won't warn you ;-)


I'm running 4K78 here and wasn't able to su or log in as root. the reason: by default there is no System Administrator created.

to remedy the problem, boot from the CD and then create a new Root (System Administrator) user from the Menu.


I found it much easier to do sudo passwrd root. for some reason, and maybe it was a mistype on my part, but it didn't work the first time by asking for my root password. Second time, however, was the charm.