
Mac Os Sierra Reset To Default Keychain Unable To Obtain Authorization For This Operation
When you first set up a user account, the login password used for that account is additionally assigned to the login keychain, where new passwords are stored by default.
Good encryption allows for no recovery. That's how it protects your system from other people. Encryption sounds like a good idea till you learn to live with it and take extra precautions to prevent the data loss it will force upon you in the event you lose the password.
Upon covering all the bases it becomes a useful tool to prevent recovery of data from stolen equipment and not a liability from forgetting the password. Various other operating systems allow for making a recovery disk or thumb drive when you first encrypt the disk that you can then store in a safe place in case this event happens. The only recourse is to get it right at least once if you have it written down correctly. I'm facing the exact same issue.

The HD in my MacMini has become corrupted and my only option is to erase it, but, in a fit of security consciousness, I encrypted it with FileVault and so Disk Utility won't erase it at all. So, not caring about the data on that MacMini (it's just my TV server, nothing that cant be reinstalled and all the actual data is on an external drive) I've booted it in target disk mode (hold down t when you start it up and connect it via FireWire to another Mac) then fire up your Terminal.% diskutil cs list to get the the Logical Volume Group ID then run% diskutil cs delete XXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Duplicated from Adding here to hopefully get more visibility. Expected behavior: Running the command docker login -u USER -p PASS HOST:8443 should login to the specified repo. Unexpected behavior: Running the above command causes docker to ask to access the KeyChain for a randomly chosen entry. If I deny the request, then the command fails with: 'error getting credentials - err: exit status 1, out: The user name or passphrase you entered is not correct.'
If I allow the request, then the command fails with: 'Error saving credentials: error storing credentials - err: exit status 1, out: The specified item already exists in the keychain.' Could be related to issue, but I believe that has already been resolved. I also tried downloading docker-credential-osxkeychain v0.5.0 and replacing /usr/local/bin/docker-credential-osxkeychain with that release and I had the same issue. I did perform a which docker-credential-osxkeychain to find the original location under /usr/local/bin/docker-credential-osxkeychain. I then replaced that binary with the v0.5.0 release with the same result. After that test, I finally deleted the binary at /usr/local/bin/docker-credential-osxkeychain, and now I can use docker login to my private registries with the standard username/password prompt from Docker.
There's a number of other reports on the original issue here for reference. Happy to perform more troubleshooting or provide more details. Thanks for following up! I did not, mainly because I wasn't even aware of docker-credential-osxkeychain before I had this issue 😄. But correct, I did see the symlink when I reset docker to factory defaults: $ which docker-credential-osxkeychain /usr/local/bin/docker-credential-osxkeychain $ cd /usr/local/bin/ $ ls -la grep docker-credential-osxkeychain lrwxr-xr-x 1 localuser staff 91 Jun 1 09:00 docker-credential-osxkeychain -> /Users/localuser/Library/Group Containers/group.com.docker/bin/docker-credential-osxkeychain Then if I run: docker login my.dockerregistery.com:5002 I get the keychain prompting me to use an item that is not my registry. It's just a random entry, because if I delete this entry, it picks a new one: and if I hit 'Deny', I get: error getting credentials - err: exit status 1, out: 'The user name or passphrase you entered is not correct.' I tried then downloading the v0.5.0 release and overwriting the symlink in /usr/local/bin/ and I got the same issue I had above.
Finally, if I delete docker-credential-osxkeychain under /usr/local/bin/, I get the normal Docker login and it works: $ docker login my.dockerregistery.com:5002 Username: Password: Login Succeeded This is on macOS 10.12.5 and Docker 17.03.1-ce-mac12 (17661). • did you restart docker? • when you try a locate docker-credential-osxkeychain, what's the output? • the usual setup is that you get a docker-credential-osxkeychain.bin file in the /Applications/Docker.app/Contents/Resources/bin/ resource directory and this is symlink'ed at /usr/local/bin/ (and also intermediately symlink'd through /Users/XXXX/Library/Group Containers/group.com.docker/bin/ normally) So feel free to recreate the missing symlink at /usr/local/bin if you have the proper binary somewhere on your filesystem.