macOS High Sierra ‘root’ security issue allows admin access to your Mac—but there's a fix

Change your root user password now.

Credit: IDG

On Tuesday, a macOS 10.13.1 security issue was revealed—a flaw that allows root access to a Mac without the need for a password. Developer Lemi Orhan Ergin tweeted that anyone can log into a Mac by entering the user name root without a password. The first time you try to login, it won’t work. But if you try it again, you will be granted access. Here’s Erign’s tweet:



At Macworld, we tried it on our own MacBook Pro running macOS 10.13.1, and the root login worked. See the video below.

This issue seemed to work only after you are logged into a Mac under a different user name. I wasn’t able to use root and no password at the Mac’s user login screen that appears at startup.

Apple was contacted for a comment, but had not responded to us as of this posting. We will update this article if we hear from the company.

As Apple’s support document notes, root is a “superuser” that grants access to areas of the system that are often used by system administrators.

How to fix the root security issue

This hole will probably be fixed in a future macOS High Sierra update. In the meantime, there are steps users can take to fix the hole. The fix is to change the password for root. Here’s how.

1. In the Finder, click on the Go menu and select Go to Folder.

finder go gotofolder.jog IDG

2. Enter the following: /System/Library/CoreServices/Applications/ and then click Go.

go to core services IDG

3. Find the Directory Utility app and launch it.

directory utility icon IDG

4. Click the lock in the lower left to make changes. In the pop-up window, enter your user name and password, then click Modify Configuration.

directory utility make changes IDG

5. Click on Edit in the menu bar and select Change Root Password.

6. In the pop-up window, enter a password and verify it. Click OK.

root change password IDG

7. In the main window of Directory Utility, click the lock to lock it and prevent further changes.

8. Quit Directory Utility. You are done.

If you try to enter root without a password at a login prompt, the promt will shake and reject your login. You’ll need to enter your new password to gain root access.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags macOS High Sierra

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Roman Loyola

IDG News Service
Show Comments

Cool Tech

Breitling Superocean Heritage Chronographe 44

Learn more >

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?