MacBook login password refused

Hello,

I cannot access my MacBook Pro Mojave anymore since yesterday.

The laptop is 2 years old. I bought it in France so its keybord is azerty.

I have checked that the correct keybord setting is used (as you can see in the top right part of the first figure) and that no caps lock is used. I also tried to change the keybord setting to other settings (american/french/qwertz and all the others that could have a chance to work for me) and it did not help.

I then tried to reset it using my ID Apple, as suggested.

My ID Apple is coupled with my laptop password.

Needless to say, it did not work: the session restarts and I get stuck at this point:

(To be sure that my laptop is paired with my Apple ID, I have just changed my Apple ID using my laptop password, using another device, and it worked very well, so now I have a brand new Apple password (wow!) ).


I have restarted the session in the recovery mode, used the terminal to reset the password, and I ended up with the same window as above where there is nothing I can do.


Finally if I look at the disk utility in the recovery mode, here is what I see:


I have been reading several treads on this problem, none of which worked in my case.


Possibly related observations are that

  • the problem appeared after that the audio was not working anymore, and after having checked that my audio settings seemed ok, I just restarted the session to see if the problem disappeared.
  • the laptop seems to use a lot of battery for doing nothing while on the login page, it gets very hot and the laptop fans make a lot of noise.

I noticed both these problems because till yesterday I had never experienced this kind of difficulty.


Any help would be appreciate. Thanks a lot!


[Image Edited by Moderator to Remove Personal Information]

Posted on Aug 5, 2021 4:40 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 8, 2021 9:03 PM

Glad to hear that your hardware is good! It's good practice to block the serial number (as you did); however it's safe (and helpful) to reveal the error code. Considering that your hardware is good, I'm guessing you got ADP000.


Regarding the lack of backups, that is unfortunate. Let's see if we can pull your Mac's data and put it in a safe place. Try these steps to see if it is possible:


First, reset NVRAM


Try the steps you linked again to reset your NVRAM. Press and release the power button first, then immediately hold down Option-Command-P-R. Keep holding these four keys until the Apple logo appears and disappears two times.


If nothing happens, a firmware password might be set. To check for one, hold down the Option key as you power on your Mac. If you see this screen, a firmware password is set (either by you or a previous owner), and you won't be able to complete the rest of these steps.




Second, reset the System Management Controller (SMC)


To reset the SMC on your Intel-based Mac, follow these steps: How to reset the SMC of your Mac - Apple Support (CA)



Third, try these steps


Now that you have reset NVRAM and the SMC, hopefully your Mac should allow you to sign in with your Apple ID when running the Password Reset Assistant. Try these steps:


  1. Run the Password Reset Assistant from Terminal using the resetpassword command.
  2. Try to reset your password using your Apple ID. Sign in when prompted.
  3. Once you've signed in with your Apple ID, your Mac will pull the recovery key stored in iCloud and use it to unlock your startup disk. You should now see the second screenshot.
  4. Press Command-Q to quit the Reset Password app.
  5. If a Terminal window appears or is still onscreen, press Command-Q again to quit Terminal.
  6. You should now see the list of utilities. Select Disk Utility and click Continue.
  7. Select Macintosh HD in the sidebar.


After step 7, look at the buttons presented at the top of the window, and let me know what you see:


  • If you see the Mount button, click on it. If you see a password prompt, unfortunately the system decided to lock your startup disk again for no good reason.


  • If you see the Unmount button instead, you're golden. Your startup disk is still unlocked and your data can be moved to a safe location.
13 replies
Question marked as Top-ranking reply

Aug 8, 2021 9:03 PM in response to jacopo275

Glad to hear that your hardware is good! It's good practice to block the serial number (as you did); however it's safe (and helpful) to reveal the error code. Considering that your hardware is good, I'm guessing you got ADP000.


Regarding the lack of backups, that is unfortunate. Let's see if we can pull your Mac's data and put it in a safe place. Try these steps to see if it is possible:


First, reset NVRAM


Try the steps you linked again to reset your NVRAM. Press and release the power button first, then immediately hold down Option-Command-P-R. Keep holding these four keys until the Apple logo appears and disappears two times.


If nothing happens, a firmware password might be set. To check for one, hold down the Option key as you power on your Mac. If you see this screen, a firmware password is set (either by you or a previous owner), and you won't be able to complete the rest of these steps.




Second, reset the System Management Controller (SMC)


To reset the SMC on your Intel-based Mac, follow these steps: How to reset the SMC of your Mac - Apple Support (CA)



Third, try these steps


Now that you have reset NVRAM and the SMC, hopefully your Mac should allow you to sign in with your Apple ID when running the Password Reset Assistant. Try these steps:


  1. Run the Password Reset Assistant from Terminal using the resetpassword command.
  2. Try to reset your password using your Apple ID. Sign in when prompted.
  3. Once you've signed in with your Apple ID, your Mac will pull the recovery key stored in iCloud and use it to unlock your startup disk. You should now see the second screenshot.
  4. Press Command-Q to quit the Reset Password app.
  5. If a Terminal window appears or is still onscreen, press Command-Q again to quit Terminal.
  6. You should now see the list of utilities. Select Disk Utility and click Continue.
  7. Select Macintosh HD in the sidebar.


After step 7, look at the buttons presented at the top of the window, and let me know what you see:


  • If you see the Mount button, click on it. If you see a password prompt, unfortunately the system decided to lock your startup disk again for no good reason.


  • If you see the Unmount button instead, you're golden. Your startup disk is still unlocked and your data can be moved to a safe location.

Sep 11, 2021 6:51 PM in response to jacopo275

Thanks for testing that out on the login screen. I’m concerned that your data could be lost forever.


When you first set up your Mac, you might have been prompted to enable FileVault. It can also be enabled or disabled from System Preferences -> Security and Privacy.


When FileVault is enabled, it protects your data from physical attacks by encrypting (scrambling) it, so that you need a key in order to decrypt (unscramble) the data. Keys are generated and managed by FileVault automatically, but configured in such a way that you need your password in order to access the appropriate keys. If you cannot access the encryption keys, your data is lost forever.


FileVault typically uses the following key structure. All of your data is encrypted using a Volume Encryption Key (VEK). This key isn’t directly accessible; instead, it is itself encrypted (wrapped) using an intermediary key, the Key Encryption Key (KEK). The KEK is then encrypted using the hash of your login password.


So, when you want to start up your Mac, the unlocking process looks like this: You enter your password at the login screen when prompted. Your Mac then takes your password, transforms it into a hash, and then uses that hash as a key to decrypt the KEK. If that succeeds, the KEK is used to decrypt the VEK. At this point, the system informs you that your password is correct, and uses the VEK to access your data. If any point in the above process fails, the system assumes that you provided the wrong password, and it cannot access your data.


When you set up FileVault, it creates a recovery key in case something goes wrong. The recovery key provides another way to decrypt the KEK and access your data, in case something goes wrong with your password (or if you forget your password). If you enabled FileVault in Setup Assistant, it will automatically store the recovery key in iCloud (hence why you had to log in with your Apple ID and password).


To check whether FileVault is active on your (Intel-based) Mac, look for these signs:


When you start up normally, the Apple logo appears, and then you immediately see the login window. A progress bar does not appear until you provide the correct password.


The Password Reset Assistant requires your Apple ID, your login password, or the recovery key in order to continue. If FileVault is disabled, it does not need these items to reset your password, since it already has access to your data.


In Disk Utility, if you select “Macintosh HD” and click the Mount button, it asks for your password. This is because it cannot read the contents of your startup disk without the VEK, and your password is needed in order to gain access to the VEK.


I’m concerned that some process (perhaps the Password Reset Assistant) was able to get the KEK, but failed to configure it so that the new password would unlock it. While corruption is extremely rare (I have never experienced it before), it’s not impossible.


Try these steps to determine how FileVault is set up on your Mac.


  1. Start up in macOS Recovery.
  2. In Disk Utility, select “Macintosh HD”, and click the Mount button. Let me know if you see a prompt for a password or not. (It’s ok to cancel the prompt.)
  3. Quit Disk Utility. Then, at the top of the screen, select Utilities -> Terminal.
  4. Type this command, exactly as shown, and hit Enter (Return): diskutil apfs listusers “Macintosh HD”
  5. Post the output here.

Sep 23, 2021 10:28 AM in response to jacopo275

Hi jacopo275,


Thanks for that info!


I can infer that FileVault is enabled on Macintosh HD for a couple of reasons:


  • The "diskutil apfs listusers" command returned recovery key info about the Macintosh HD volume. That info is consistent with a typical FileVault + iCloud setup.


  • By default, your Mac tries to mount (make accessible) most volumes by default. Macintosh HD was not mounted in your screenshots, implying that something is blocking the mounting process (such as the need for a FileVault password).



To double-check whether Macintosh HD is encrypted or not, run this command in Terminal: diskutil info "Macintosh HD"


If you have access to another Mac, try these steps:


Try using a bootable installer:


A bootable installer contains a fresh copy of macOS Recovery and the macOS installer.


  1. On a healthy Mac, download macOS Mojave.
  2. Once macOS Mojave is downloaded, connect a 16 GB flash drive. Rename it to "MyVolume".
  3. Follow these steps to prepare it as a bootable installer: How to create a bootable installer for macOS - Apple Support
  4. Start up from the bootable installer on the problematic Mac.
  5. Try the Password Reset Assistant again (go to Terminal, run "resetpassword"). Let me know what you see when the assistant first opens.


Try using Target Disk Mode:


  1. Connect your Mac to another Mac using (most likely) a Thunderbolt 3 cable.
  2. Restart the problematic Mac while holding down the T key. Release the key when the Thunderbolt and USB icons appear onscreen.
  3. On the other Mac, check Disk Utility to see if it recognizes the problematic Mac, and if it mounts "Macintosh HD" from it.

Sep 19, 2021 2:25 PM in response to jacopo275

Thank you for those details! It looks like FileVault should be intact - the iCloud Recovery Key configuration looks correct. (It should consist of a user and an external key).


Regarding the info pane in the second screenshot: it looks like you showed the info for the APFS container (the APFS partition residing on the internal drive). The container itself isn't encrypted, nor does it hold any data on its own. Rather, the container holds these APFS volumes (in your example):


  • Macintosh HD (in macOS Mojave, this holds both macOS and your data)
  • Preboot (contains boot materials and login info)
  • Recovery (contains macOS Recovery)
  • VM (used for swap memory)


Each AFPS volume has its own encryption state and case-sensitivity policy. By default, all of the above volumes are NOT case-sensitive, and the bottom three volumes cannot be encrypted. (Macintosh HD can be encrypted using FileVault, which it is.)


Regarding Terminal inputting the wrong keys, I wonder if this is happening in both the preboot environment (where the first login screen appears) and in all of macOS Recovery. Try these steps:


  1. If you don't have one, purchase or borrow an external US keyboard that uses the QWERTY format.
  2. Shut down your Mac.
  3. Connect the external keyboard to your Mac, then power on your Mac normally.
  4. Try using the external keyboard to enter your password.


If that works, fantastic - you got your data back! We could probably resolve the root issue pretty quickly.


If the above 4 steps don't work, start up in macOS Recovery, and try using your external keyboard to type commands in Terminal. Check if the keys send the expected input.

Aug 6, 2021 11:47 AM in response to jacopo275

Hi jacopo275,


Thanks for the detailed post!


jacopo275 wrote:

Possibly related observations are that
the problem appeared after that the audio was not working anymore, and after having checked that my audio settings seemed ok, I just restarted the session to see if the problem disappeared.
• the laptop seems to use a lot of battery for doing nothing while on the login page, it gets very hot and the laptop fans make a lot of noise.


These sound like hardware issues. Try starting up your Mac while holding down the D key (or Option-D if that doesn't work) to run hardware diagnostics. If any hardware issues are detected, that could be a problem.


Regarding your password, try booting into macOS Recovery and loading the Password Reset Assistant (via Terminal) as usual, but try either "My password doesn't work when logging in" or "My keyboard isn't working when typing my password to log in". If you select the latter option, you'll be asked for your password to disable FileVault. If successful, decryption will begin, and you can recover your data.


Also, do you have a Time Machine backup of your Mac?

Sep 11, 2021 6:42 AM in response to jacopo275

Hi jacopo275,


When FileVault is enabled on your Mac, your password and the recovery key are the only items that can cryptographically unlock your Mac. Touch ID cannot supply the necessary info needed to unlock your data. (Data unlocking occurs when the first login screen is shown after starting up your Mac. Future prompts for your password also accept Touch ID because your data is already unlocked.)


Just to confirm, what happens if you start up your Mac normally and enter the correct password? Does your Mac act as if it is incorrect and shake the password box? Or does it accept the password, attempt to start up but fail?

Sep 11, 2021 6:05 AM in response to Encryptor5000

Hello, after coming back to France and visiting an apple center (iCare Haussmann-Opera, 8 cite d’Antin, Paris) I have not been able to solve the issue yet.

I have been told that the computer passes all the tests, but that they haven’t been able to get rid of the password and thus to let me in again (even if I left them my login password).

I haven’t decided yet what to do and I am reluctant to reinitialize my pc losing the data it contains, and still hope here is something I can do to login again.

If you or anyone else has some ideas, please le me know. There must be a way, I mean I cannot believe that I am not authorized anymore to login!

My pc is able to login also recognizing my finger-print. Isn’t there one way to enforce the login through this method?

Aug 8, 2021 2:09 PM in response to Encryptor5000

Hello, thanks a lot for your reply.


I’ve tried to start up my Mac while holding down the D key, this is what I get:

The ‘no issue found’ message looks encouraging, doesn’t it?


Loading the password reset assistant does not work for me. I type ‘reset password’ on the terminal I have access to in the recovery mode, and this window shows up:


Digging more "My keyboard isn't working when typing my password to log in" on the net, I found that


-Reset NVRAM or PRAM on your Mac:

https://support.apple.com/en-us/HT204063


might be maybe useful but unfortunately this does not work for me. I tried to hold down the command+ option+P+R while turning the pc on, but nothing seem to happen.


Regarding the last question, no I do not have a time machine backup :(






Aug 9, 2021 1:17 PM in response to Encryptor5000

Hello, thanks again for your suggestions.

Yes I got ADP000.


I managed to reset the NVRAM and the SMC following the steps indicated.

With the NVRAM, everything worked as expected. I saw twice the Apple logo appear and then restarted the session.


After having restarted the NVRAM and the SMC, I continue to not be able to login.

Even after starting the session in the recovery mode, and typing resetpassword from the terminal, I am not be able to use the password reset assistant. The screen I see is the same I have been posting twice in my two previous messages, where I am asked to set a password for each user, but I see no user below the message.

Sep 19, 2021 2:20 AM in response to Encryptor5000

Hello, thanks a lot for the detailed reply.

In Disk Utility, if I select “Macintosh HD”, and click the Mount button, nothing happens.

Let me show you some screenshots of what I see:



Each time I selected a different volume (one inside the other?).

In the second figure, I am also showing the window that appears when clicking on 'info', where it seems to me that the volume is not encrypted.


In the Terminal, I tried some commands you suggested. Here is the result:


On a side note, I noticed that typing on the terminal, the letters do not correspond to what I type: I mean that having indicated my preferred language as English when starting in the recovery mode (that was my preferred language also during normal operations of my Mac even if my keyboard is an azerty, having bought this laptop in France), it looks like I am typing using a qwerty keyboard.

I had not this problem when using the terminal in a normal session until when I could use my Mac.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook login password refused

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.