Chapter in this post:
I recently reinstalled an old Mac for a friend and then - because it had to be quick - typed in a pointless password as the admin password, which I was sure I would remember later. Of course, my weak brain let me down again and I forgot. For security reasons, of course, I only entered nonsense for the password, and so I was standing there and was practically only able to reinstall OS X Lion. After the computer told me that it would take about 6 hours to load the installation image (thanks to Telekom for the exhilarating DSL 3000!), I thought I could bridge the gap by looking for another solution to this Reset the admin password. And actually I found it on Google, and I'm happy to share the instructions in the hope of helping other forgetful people:
The first step is that the computer is booted from the recovery partition. For new Macs this is done like this:
For Macs that still have a CD drive or if you have a USB stick with a Lion installer, you can also select this as the startup disk (under system settings) and then restart. Then it also boots up in the recovery partition.
The next step is this Port to open and then reset the password via the command line. This works like this:
After saving, you get a message that the keychain will be recreated. The old key ring can no longer be unlocked with the new password, so a new one is created. If you have confirmed the warning messages, go to the apple menu and restart and then the new password should work the next time you log in.
A nice person replayed and filmed the whole procedure on his Mac and you can find the film here:
Jens has been running the blog since 2012. He appears as Sir Apfelot for his readers and helps them with problems of a technical nature. In his free time he drives electric unicycles, takes photos (preferably with his iPhone, of course), climbs around in the Hessian mountains or hikes with the family. His articles deal with Apple products, news from the world of drones or solutions for current bugs.