Re:macOS High Sierra: Anyone can login as “root” with empty ...
by jameskilton on Tuesday November 28, 2017 @03:26PM
(#15801148)
Do note that this doesn't fix the problem. The system (at least High Sierra) will happily re-enable the user for every attempt at logging in.
[ Parent
| on HN ]
Re:macOS High Sierra: Anyone can login as “root” with empty ...
by LolWolf on Tuesday November 28, 2017 @04:06PM
(#15801633)
Just change the root password once the account is enabled; this fixes the hole.
sudo passwd -u root
It's sad we have to do this, though.
Re:macOS High Sierra: Anyone can login as “root” with empty ...
by tekacs on Tuesday November 28, 2017 @05:06PM
(#15802303)
If you disable the root user using `dsenableroot -d` from the Terminal, this seems to disable the account in a way that leaves its password intact.
Re:macOS High Sierra: Anyone can login as “root” with empty ...
by pwinnski on Tuesday November 28, 2017 @05:26PM
(#15802465)
The bug isn't in the disabling, it's in the auto-enabling on attempt.
Re:macOS High Sierra: Anyone can login as “root” with empty ...
by tekacs on Tuesday November 28, 2017 @05:34PM
(#15802536)
Having tested this by both approaches (disabling through GUI & shell), the above (through shell) seems to prevent this from re-occurring when you attempt to perform this bogus login again. Disabling the account via the GUI causes the failure to re-occur.