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

enter image description here enter image description here enter image description here enter image description here

What's a path to get an admin account so I can fix things up?

  • Good effort listing users, but you'll need your admin password to enable root and the other two users won't be useful for getting control of the password again. I've linked to two resources to get you back in business in an answer.
    – bmike
    Feb 11, 2018 at 15:19

1 Answer 1


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, then sudo 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 macOS

Here'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.

  • Thank you Mike for fast and helpful response. I created another admin user and change password successfully.
    – dado88
    Feb 11, 2018 at 21:03
  • It seems that the cause of problem was different input source before and after login. Initially, the password was created by UK keyboard layout and later was added German (native layout). Login screen hasn't show input info by default which is very helpful to avoiding such issues.
    – dado88
    Feb 11, 2018 at 22:23
  • 1
    @dado88 also, don’t put emoji in your only admin password. Lesson learned the hard way by me a few betas ago. Not sure if that’s resolved in all the places you might need to type your admin or FileVault password.
    – bmike
    Feb 11, 2018 at 23:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .