How can we enable the root user in OS X

Sometimes when we want to make some changes in the system OS XAccess only user admin is not enough. For such situations (in which you need unrestricted access all system resources for various actions such as troubleshooting or monitoring system) solution is the root user (or superuser), Access to which is the alternative to order sudo.

Note: The root user is disabled in mode default in OS X, it can only be activated by the user administrator and does not appear (even after activation) in Users & Groups or Account Preferences.

If you wish to Enable the root user in OS X (For whatever reason), you can do so by following the instructions below.

How do we activate the Root user (or superuser) in OS X?

  • open System Preferences and click on Accounts
  • in the open window click on Login Options, under My Accounts (Left)
osx-account-preferences
  • into law Network Account Server, Click the button Join or Edit
osx-network-account-server
  • then click on Open Directory Utility
osx-open-directory-utility
  • in the upper left corner, open the menu Edit and select Enable Root User
osx-enable-root-user
  • then open the menu again Edit and select Change Root Password
OSX-Change-Root-Password
  • after choosing and check passwordYou can use this option Log Out from system menu to log out of the user administrator, then log back in as root user

To disable the root user in OS XFollow the steps above again and select menu Edit option Disable Root User.

Another method is faster to enable the root user It is in the Terminalcommunity (And this method should use user site administrator). Type in a window Terminal open next sequence (Which replaced admin cu the user name administrator used by you):

dsenableroot
username = admin
user password:
root password:
verify root password:

After the message dsenableroot :: *** Successfully enabled root user will be displayed, you will be able to Log in system ca root user.

To disable the root user also by means of Terminalcommunity use the sequence:

dsenableroot -d
username = admin
user password: 

dsenableroot:: ***Successfully disabled root user.\

Note: It is not recommended to use root as a user default; on the contrary, after performing tasks that require root access, it is recommended to disable the root user to avoid any problems.

STEALTH SETTINGS - How to enable root user in OS X

Passionate about technology, I like to test and write tutorials about operating systems Windows, always looking to discover interesting things.

How to » macOS » How can we enable the root user in OS X
Leave a Comment