- Hold
⌘+S
on startup mount -uw /
(fsck -fy
is not needed)launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
(or/System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
in 10.6)dscl . passwd /Users/username
(without a trailing slash) and enter a new password. You can ignore the error aboutcom.apple.DirectoryServices.plist
.reboot
Created
December 27, 2023 19:09
-
-
Save rubenarakelyan/2b6ad14b3a6b1f1b21595df80f6986d5 to your computer and use it in GitHub Desktop.
Change macOS password in single user mode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment