Sie sind auf Seite 1von 4

Enabling and using the "root" user in Mac OS X

The root user in Mac OS X is disabled by default. Follow the steps in this article to enable and use it, if needed.
Important: If you are not familiar with the meaning of "root user," read this entire article to learn important
precautionary information before using the root user. You must have an administrator account and password to
complete the steps below.
About the root user
The user named "root" is a special user in UNIXstyle operating systems that has read and write privileges to all
areas of the file system. The root user should only be used for specific administration or monitoring tasks. After
completing a task as the root user, you should log out of Mac OS X and log back in using a normal or
administrator account. You should disable root access if you do not use it often.
The root user does not appear in Users or Accounts preferences.
Important notes
Only the owner of a computer or its designated administrator(s) should have an administrator account or the
root password.
Any user with an administrator account can become the root user or reset the root password.
A root password should be difficult to guess, containing both numbers and letters within the first eight
characters.
A root user has the ability to access other users' files.
The root user has the ability to relocate or remove required system files and to introduce new files in
locations that are protected from other users.
How to enable the root user
OS X Lion
1. From the Apple menu choose System Preferences....
2. From the View menu choose Users & Groups.
3. Click the lock and authenticate as an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right.
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Enable Root User from the Edit menu.
10. Enter the root password you wish to use in both the Password and Verify fields, then click OK.
Mac OS X v10.6.x
1. From the Apple menu choose System Preferences....
2. From the View menu choose Accounts.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right.
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Enable Root User from the Edit menu.
10. Enter the root password you wish to use in both the Password and Verify fields, then click OK.
Note: If you are troubleshooting an issue that prevents you from logging in as an administrator, follow the steps
in this article to enable the root user.
Mac OS X v10.5.x
1. From the Finder's Go menu, choose Utilities.
2. Open Directory Utility.
3. Click the lock in the Directory Utility window.
4. Enter an administrator account name and password, then click OK.
5. Choose Enable Root User from the Edit menu.
6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.
Note: If you are troubleshooting an issue that prevents you from logging in as an administrator, follow the steps
in this article to enable the root user.
Languages English
Mac OS X v10.4.x or earlier
1. Click the Finder icon in the Dock.
2. From the Go menu, choose Applications.
3. Open the Utilities folder.
4. Open the NetInfo Manager utility.
5. Click the lock in the NetInfo Manager window.
6. Enter an administrator account name and password, then click OK.
7. For Mac OS X 10.2 and later, choose Enable Root User from the Security menu.
8. For Mac OS X 10.0 and 10.1, choose Security from the Domain menu, then Enable Root User from the
submenu.
9. If you have not previously set a root password, an alert box may appear that says "NetInfo Error," indicating
that the password is blank. Click OK.
10. Enter the root password you wish to use and click Set.
11. Enter the password again for verification and click Verify.
12. Click the lock again to prevent changes.

How to log in as root
Use these steps for Mac OS X v10.2 or later
1. If you are logged in, choose Log Out from the Apple menu.
2. If you are logging in from a list of usernames with pictures, click Other.
3. In the Name field, type: root
4. In the Password field, type the password you defined in the steps above.
Use these steps for Mac OS X v10.0 to v10.1.5
After enabling the root user, you must log out from Mac OS X and log back in as the root user. Logging in to Mac
OS X from a list of usernames is the default behavior for later versions of Mac OS X. Logging in by typing your
username in a text entry field is the default behavior in earlier versions of Mac OS X. You can choose either
method in Login preferences. The root user does not appear in the list, so you need the text entry option. If
necessary, follow these steps to change the login method to text entry:
1. From the Apple menu, choose System Preferences.
2. From the View menu, choose Login.
3. Click the Login Window tab.
4. Select the radio button for "Name and password entry fields."
Follow these steps to log in as root:
1. If you are logged in, choose Log Out from the Apple menu.
2. In the Name field, type: root
3. In the Password field, type the password you defined in the steps above.
How to disable the root user
OS X Lion
1. From the Apple menu choose System Preferences....
2. From the View menu choose Users & Groups.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Disable Root User from the Edit menu.
Mac OS X v10.6.x
1. From the Apple menu choose System Preferences....
2. From the View menu choose Accounts.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Disable Root User from the Edit menu.
Mac OS X v10.5.x
Mac OS X Server 10.3 or later: Enabling
VPNPPTP access for users in an LDAP
domain
Run the tool /usr/sbin/vpnaddkeyagentuser as
root with the LDAP node (directory in which users
are present) name as the argument. For example,
if the server that's running the VPN Service is als
the LDAP Master, you would enter this command
in Terminal: sudo /usr/sbin/vpnaddkeyagentuser
/LDAPv3/127.0.0.1
OS X: How to change the language
displayed in the login window
Enable the root user. To learn how to do this, see
Enabling and using the " root " user in Mac OS X .
Mac OS X v10.5: Working with user
accounts and Accounts preferences
Transferring files from one account to another on
the same Mac : This advanced article offers an
alternative way to copy directly from one
account's Home folder to another (steps 1
through 3, and 18 through 40). However, this
requires enabling the root user, and disabling
FileVault if it is on.
Instructions for Enabling and using the
"root" user in OSX 10.8
You don't want to run as root . Anything you need
to do as root can be more easily done with sudo.
What's the difference between the Admin
and Root accounts in Mac OS X?
Running as a standard user might prevent that
threat since the standard user shouldn't be able to
elevate their privileges.
How do I remove iTunes plugins after Mac
OS X Lion upgrade?
How do I drop these things? I tried to enable my
admin username as the root user in hopes that
that might work (I'm no Mac guru, I just followed
instructions from an internet search), but still I
can't find them. Any help?
Ask other users about this article
Start a Discussion
in Apple Support Communities
1. Click the Finder icon in the Dock.
2. From the Go menu, choose Utilities.
3. Open Directory Utility.
4. Click the lock in the Directory Utility window.
5. Enter an administrator account name and password, then click OK.
6. Choose Disable Root User from the Edit menu.
Mac OS X v10.4.x or earlier
1. Open NetInfo Manager. It's in the Utilities folder.
2. Click the lock.
3. Enter the name and password for an administrator account, then click OK.
4. For Mac OS X 10.2 and later, choose Disable Root User from the Security menu.
5. For Mac OS X 10.0 and 10.1, choose Security from the Domain menu, then Disable Root User from the
submenu.
What is the root directory?
The term root is used in two distinct ways: The "root user" and the "root directory." The root directory is the
highest directory level of a disk. The files and folders you see when you open (doubleclick) your hard disk icon
are the contents of that disk's root directory. A directory is represented graphically as a folder. You may know
your home directory as your "home folder." The terms "folder" and "directory" are generally interchangeable.
A user's short name is also the name of his home directory.
The Finder and the Terminal show different contents for the root directory. Some items in the root directory are
not visible in the Finder. This reduces visual clutter and enhances simplicity. If you are familiar with a UNIXstyle
command line you can use Terminal to view all items in a directory.
Last Modified: Feb 7, 2012
Related
Additional Product Support Information
Submit my question to the community
Helpful? Yes No
Mac OS X 10.6 OS X Lion
See all questions on this article See all questions I have asked
Contact Apple Support
Need more help? Save time by starting your support request online and we'll
connect you to an expert.
Get started

Das könnte Ihnen auch gefallen