My user login password not working for executing sudo in terminal and I cannot unlock Users & Groups preferences. I tried to write password in editor and paste it but no success on macOS 10.13.3
What's a path to get an admin account so I can fix things up?
Best Answer
The trust chain can be broken in thousands of ways, so picking apart the specific failure might need some back and forth.
The good news - you can easily reset a password or make a new admin account so you can
su
to that account, thensudo
or just enter the other user/password combination to unlock system preferences since any account can be used in addition to the logged in account to authenticate in macOSHere's the reset one, two official article and article here on just making a new admin account by re-running the out of box setup process:
Also, use locale specific keys or emoji password with caution. You might retain one admin account and password with a long but boring standard locale typable password.