Fix macOS High Sierra Root Security
In this article
Yes, you can fix the macOS High Sierra root security vulnerability by updating to the latest security patch (version 10.13.6 with Security Update 2018-001 or later) or by manually setting a password for the root user. The vulnerability allowed any user to log in as root without a password when the root account was enabled. Here’s how to secure your Mac.
What You'll Need
- Your Mac running macOS High Sierra (10.13.x)
- Administrator username and password
- Internet connection to download the update
- Time to restart your Mac (for updates)
Step-by-Step
Method 1: Install the Latest Security Update (Recommended)
- Back up your Mac using Time Machine or your preferred backup method before installing any system update.
- Click the Apple menu () in the top-left corner and select System Preferences.
- Click Software Update. (If you're on 10.13.6, you may see a button to update; if you're on an earlier version, the App Store app will open.)
- Allow the system to check for updates. Look for Security Update 2018-001 or any newer security update labeled for macOS High Sierra.
- Click Update Now or Install. Enter your administrator password when prompted.
- Restart your Mac when the update finishes. The update patches the root vulnerability.
Method 2: Manually Set a Root Password
If you can't install the update immediately, you can manually set a password for the root user to block the exploit.
- Open System Preferences from the Apple menu.
- Click Users & Groups.
- Click the padlock icon in the bottom-left corner and enter your administrator username and password.
- Click Login Options in the left sidebar.
- Next to Network Account Server, click Join (or Edit if already joined).
- Click Open Directory Utility.
- In Directory Utility, click the padlock icon and enter your administrator credentials again.
- From the menu bar, choose Edit > Enable Root User. (If it's already enabled, skip to the next step.)
- Then choose Edit > Change Root Password...
- Enter a strong password and verify it. Click OK.
- Quit Directory Utility and System Preferences. The root account now has a password, so the exploit won't work.
Common Mistakes
- Forgetting to enable the root user first: If you try to change the root password without enabling it, Directory Utility may not show the option. Always enable it first.
- Using a weak password: A simple password like "1234" defeats the purpose. Use a long passphrase with mixed characters.
- Skipping the update: Manually setting a password only protects the root account; Apple's update also fixes other related security issues. Always install the update as soon as possible.
- Not backing up: System updates can occasionally fail or cause data loss. Always have a recent backup.
Tips
- After installing the security update, verify that the root user is disabled (unless you need it). In Directory Utility, if the root user is enabled, consider disabling it again after setting a password.
- If you don't use the root account, keep it disabled. In Directory Utility, choose Edit > Disable Root User after setting a password.
- Enable FileVault disk encryption if you haven't already; it adds another layer of protection against unauthorized access.
- Regularly check for software updates via System Preferences > Software Update to keep your system patched.
Troubleshooting
If the update fails or the manual method doesn't work, try these steps in order:
- Restart your Mac: Sometimes a simple restart resolves temporary glitches.
- Check your internet connection: The update requires a stable connection. Try a different network or reset your router.
- Free up disk space: Updates need several GB of free space. Go to Apple menu > About This Mac > Storage to see available space.
- Download the update manually: If Software Update is stuck, go to Apple's support website and search for "Security Update 2018-001" to download the standalone installer.
- Reset NVRAM: Shut down your Mac, then turn it on and immediately press and hold Option+Command+P+R for about 20 seconds. This can fix boot issues after updates.
- Boot into Safe Mode: Restart and hold the Shift key until the login window appears. Then try the update again.
- If the manual root password method fails: Make sure you are in the correct directory utility. On High Sierra, the path is System Preferences > Users & Groups > Login Options > Join > Open Directory Utility. If you can't open it, try using the Terminal command
sudo passwd rootin the Terminal app (but only if you know the current root password or are an administrator).
Frequently Asked Questions
What exactly was the High Sierra root vulnerability?
In late 2017, a bug allowed anyone to log in as root by entering "root" as the username and leaving the password field blank. This gave full administrative access to the Mac.
Is my Mac still vulnerable if I set a root password?
No, setting a root password closes the specific exploit because the blank password no longer works. However, Apple's security update also fixes other underlying issues, so installing it is strongly recommended.
How do I know if my Mac has the latest security update?
Go to System Preferences > Software Update. If it says "Your Mac is up to date" and you're on 10.13.6, you likely have the patch. You can also check the build number: go to About This Mac and look for a version like 10.13.6 (17G65) or later.
Can I use the root account for everyday tasks?
No, you should avoid using the root account for daily work. It bypasses many safety checks and can lead to system damage. Use it only for troubleshooting when necessary, then disable it.
What if I already had the root user enabled before the vulnerability was discovered?
If you had a password set on the root account, you were not vulnerable. But you should still update to ensure all security patches are applied.
Will this update affect my files or apps?
No, the security update should not alter your personal files or apps. It only patches system components. However, always back up before any update just in case.