How to Enable the "root" Account on Mac OS XQuick Command Line MethodThis is the easiest method to enable the "root" account on a Mac if you are more of a Command Line Interface person:
Incidentally, it is also relatively easy to add your own personal login to the "wheel" group from the command line. Recall that Mac OS X respects the BSD Unix tradition of only allowing members of the "wheel" group to su to root. We showed a simple way around this above (simply `ssh root@localhost`), but you don't even need to do that if your personal account is in the wheel group. For Mac OS X 10.6 and beyond, which use the Directory Service to keep track of users and groups, the command is simply # dscl . -append /Groups/wheel GroupMembership "myers"As the "#" in the command prompt implies, you must be 'root' (or at least an Administrator) to give this command. Don't miss the "dot" after the command name; that is the "data source", and the dot means the local machine, rather than a remote directory service. Be sure to replace "myers" with the name of your own user account. You can verify that it worked with the traditional Unix `groups` command, or by saying # dscl . -read /Groups/wheel
|
Last modified: Wednesday August 08, 2012 | Copyright © 2012 by Spy Hill Research | http://www.Spy-Hill.com /myers/help/apple/EnableRoot3.html |