Mac OS X: Enable Root Account on Mac OS X 10.7 Lion

There are several reasons why someone might want to enable root login on their Mac. From a security perspective, setting a root password is a way to “take ownership” of the super user account and effectively restricts the possibility for someone else to do so in your place. In some other cases, you may need to login as root for boot manipulation and other very low level operations.

In most cases, you don’t need to have root access enabled to execute commands as the super user. The following command works just as well most of the time:

$ sudo -s

When prompted, enter the password for your account. You need to be logged in as an Administrator to execute this command. This will not work if you are a Standard or Guest user.

Like in previous versions of Mac OS X, logging in as root is disabled by default. Luckily, enabling root access can be done in a few simple steps.

  • Launch the Directory Utility. It is located in /System/Library/CoreServices.
  • Click the padlock icon on the bottom left corner and enter your Administrator login credentials to unlock the application.
  • In the Edit menu, select Enable Root User.
  • Again from the Edit menu, select Change Root Password. A dialog window will apear prompting you to enter a root password.
No comments yet.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

revia in alcoholism