Ir para o conteúdo principal
Participe da comunidade de reparos - Criar conta

How to reset the password on a Mac

Visualizações: 61 mil

Visualizar Estatísticas:

Últimas 24 horas:
39
Últimos 7 dias:
240
Últimos 30 dias:
960
Ao todo:
61.261
Comentários: 24

13 comments on steps, 11 guide comments.

Go to guide comments
Concluído: 28

28 pessoas marcaram este guia como "concluído". Será você o próximo?

Favorites: 6

6 pessoas favoritaram (e se inscreveram) neste guia. Você será o próximo?

Tempo necessário: 2 - 10 minutos
Dificuldade: Fácil
Guia colaborativo

Foi um incrível membro de nossa comunidade quem criou este guia. Não foi ninguém da equipe iFixit, não.

How to reset the password on a Mac

Introdução

Ir para o passo 1 ↓

If you forgot the password to your Mac or you need to create a new administrator account but you do not know the password of any administrator user account on the computer, or you just want to see the Setup Assistant again, this guide will show you how to trick your Mac into thinking it has never been set up before without wiping any of your data.

If you have a Firmware Password enabled on your Mac, you must disable it otherwise this guide will not work!

This will NOT work if FileVault is enabled!

The instructions in this guide WILL NOT work on a Mac with an Apple T2 Chip or an Apple Silicon processor (such as the M1).

    1. How to reset the password on a Mac, Start your Mac in Single-User Mode: passo 1, imagem 1 %32
      • Shut down your Mac

      • Press and hold the Command + S keys while pressing the power button to turn on your Mac.

      • It is best to start holding the keys before the screen turns on or you hear the startup chime. If you see the Apple logo, then you need to shut down and to do this step over. Except on a Mac with a T2 chip, the Apple logo will always appear the second the computer turns on.

      • You should see a black screen with white text.

      Pergunte ao FixBot

      Comentar

    2. How to reset the password on a Mac, Mount root device as read-write: passo 2, imagem 1 %32
      • When the text stops, you should see a line that says "localhost:/ root#" at the bottom. If you don't see "localhost:/ root#", press enter.

      • Type in "mount -uw"

      • Some more text will appear on the screen. when you see the "localhost:/ root#"at the bottom, continue to the next step

      Pergunte ao FixBot

      Comentar

    3. How to reset the password on a Mac, Remove the .AppleSetupDone file: passo 3, imagem 1 %32
      • Type in, "rm /var/db/.AppleSetupDone" and press enter/ return

      • This is case sensitive!

      • There must be a space in between the rm and / otherwise you will get a "no such file or directory" error

      • This method WILL NOT work if FileVault is enabled on the startup disk.

      Pergunte ao FixBot

      Comentar

    4. How to reset the password on a Mac, Override root/wheel for /var/db/.AppleSetupDone: passo 4, imagem 1 %32
      • If you get a message that says "override r------- root/wheel for /var/db/.AppleSetupDone?", type in "y" and press enter/return.

      • You may get an error that says, "rm: /var/db/.AppleSetupDone: read-only file system.

      • If you don't see a message that says "override r------- root/wheel for /var/db/.AppleSetupDone?", then continue to the next step.

      Pergunte ao FixBot

      Comentar

    5. How to reset the password on a Mac, Reboot computer: passo 5, imagem 1 %32
      • Type in "reboot" and press enter/return.

      Pergunte ao FixBot

      Comentar

    6. How to reset the password on a Mac, Setup your Mac: passo 6, imagem 1 %32 How to reset the password on a Mac, Setup your Mac: passo 6, imagem 2 %32
      • Your Mac will now reboot to the Setup Assistant. You can now set up your Mac.

      Pergunte ao FixBot

      Comentar

    7. How to reset the password on a Mac, Congratulations: passo 7, imagem 1 %32 How to reset the password on a Mac, Congratulations: passo 7, imagem 2 %32
      • You have now created a new user account with full administrator access. All the user accounts created prior to this remain untouched.

      Pergunte ao FixBot

      Comentar

Conclusão

You have now successfully created a new administrator account on your Mac.

Cancelar: não concluí este guia.

28 outras pessoas executaram este guia.

Autor(a)

com

Elijah

Membro desde: 12/16/18

1.490 Reputação

Autoria de 2 guias

11Comentários do guia

What are the steps to overcome the error?

“You may get an error that says, rm: /var/db/.AppleSetupDone: read-only file system.”

dhinostroza - Responder Compartilhar

This error can be caused because FileVault is enabled or that there was some random error. Try running the same commands in Terminal in the macOS recovery partition and see if that works. This error may also occur on a Mac with a T2 chip. If FileVault is enabled, you will have to erase the hard drive/SSD and reinstall macOS if you forgot your password.

Elijah - Responder Compartilhar

i get no such file or directory why ???

Mohamed Barnoussi - Responder Compartilhar

El nuevo usuario administrador que se crea ¿de dónde toma el nombre “Admin” que es el nombre del nuevo usuario administrador?

Horacio Gáñez

Harok Hga - Responder Compartilhar

: /var/db/.AppleSetupDone: read-only file system.",

you have to allow write access to the filesystem,

but only after checking for errors.

On my old MacBookPro, it's written in the system messages:

/sbin/fsck -fy

/sbin/mount -uw /

rm /var/db/.AppleSetupDone

Afterwards, it worked as described

Walter Bastanier - Responder Compartilhar

Comentar

Visualizações:

Últimas 24 horas: 39

Últimos 7 dias: 240

Últimos 30 dias: 960

Ao todo: 61,261