How to install new OS if I don't know my user password?

Have an old 2007 iMac with a 2.4GHz Intel Core 2 Duo currently running 10.8.5, and I want to update the system OS to El Capitan 10.11.6 (which is the lastest OS that can run on this hardware).


I am currently logged in to my user account, because I have the user settings set to "automatically log in at startup." However, I long ago forgot what the password was (the computer has been in storage for a while), and even the email address associated with the account is now defunct.


My problem is that when I try to launch and install the "InstallMacOSX.pkg" for El Capitan, I get a popup warning in the Installer app which says "Installer is trying to install new software. Type your password to allow this." If I don't type the password, then the installation can't proceed.


So: How can I fix this issue? Is there some way to find out one's password while logged into a user account? And if not, is there some way to bypass this roadblock in the Install process so In can get the new OS and a new user account with a new password, etc.?


(If it matters, I've already backed up and migrated to a different device all the files I want from the computer, so I have no need or desire so keep anything that's on it, and want to wipe all data from the drive anyway.) Thanks!

Posted on Nov 7, 2022 4:48 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 8, 2022 1:27 PM

Tuffy Nicolas wrote:

Thanks for the detailed reply. When I try to "Erase" the physical drive in Recovery Mode (exactly as you describe), I get an error saying "Can't Unmount Disk." Any way around this error?

Then you need to use Disk Utility to unmount that volume by selecting the volume in the left pane and clicking the "Unmount" icon on the right side.


If I choose "Reinstall OS" from the Recovery startup page, then choose the correct startup volume, and click all the install steps correctly, I get an error message from the Apple site saying "This item is temporarily unavailable. Try again later." I get this message repeatedly -- never changes. Any way around this error either?

It is probably because the certificate for the installer expired a while back. You can try changing the date to a time in 2017 (may need to be an earlier year) by using the Terminal app located on the Utilities menu. Within the Terminal app type the following to change the date & time to Jan. 2, 2017 @ 11:33am (adjust the year accordingly if you get the same error):

date  -u  0102113317


I suggest you boot into Recovery Mode using Command + Option + R as that should prevent needing to supply your AppleID & password to prove you previously purchased macOS 10.11 (Apple's information is a bit vague on this).


Keep in mind, once the drive is erased, then you will no longer be able to access Recovery Mode since the drive will be empty. You can try erasing just the "Macinotosh HD" volume in Disk Utility instead of the whole physical drive so it preserves your ability to boot back into Recovery Mode (should work if you did not have Filevault enabled).


Similar questions

25 replies
Question marked as Top-ranking reply

Nov 8, 2022 1:27 PM in response to Tuffy Nicolas

Tuffy Nicolas wrote:

Thanks for the detailed reply. When I try to "Erase" the physical drive in Recovery Mode (exactly as you describe), I get an error saying "Can't Unmount Disk." Any way around this error?

Then you need to use Disk Utility to unmount that volume by selecting the volume in the left pane and clicking the "Unmount" icon on the right side.


If I choose "Reinstall OS" from the Recovery startup page, then choose the correct startup volume, and click all the install steps correctly, I get an error message from the Apple site saying "This item is temporarily unavailable. Try again later." I get this message repeatedly -- never changes. Any way around this error either?

It is probably because the certificate for the installer expired a while back. You can try changing the date to a time in 2017 (may need to be an earlier year) by using the Terminal app located on the Utilities menu. Within the Terminal app type the following to change the date & time to Jan. 2, 2017 @ 11:33am (adjust the year accordingly if you get the same error):

date  -u  0102113317


I suggest you boot into Recovery Mode using Command + Option + R as that should prevent needing to supply your AppleID & password to prove you previously purchased macOS 10.11 (Apple's information is a bit vague on this).


Keep in mind, once the drive is erased, then you will no longer be able to access Recovery Mode since the drive will be empty. You can try erasing just the "Macinotosh HD" volume in Disk Utility instead of the whole physical drive so it preserves your ability to boot back into Recovery Mode (should work if you did not have Filevault enabled).


Nov 8, 2022 5:15 PM in response to Tuffy Nicolas

Tuffy Nicolas wrote:

One of the other computers is a 12" Retina Macbook from 2015, which the list says IS compartible with creating an El Capitan bootable macOS 10.11 USB installer (albeit with "No Handoff Support (Bluetooth 4.0)").

Perfect.


So, would the plan then be: Create a bootable 10.11 on a USB drive, and then restart the iMac with that USB drive plugged in? ..... How could or would I be able to select the USB drive as the "startup disk"?

Create the bootable USB installer by following the instructions in the Apple article I linked previously. Read them carefully since after downloading the installer .dmg file you will need to extract the real installer to the Applications folder, after which you will run the Terminal command to make the USB installer. The article also has a link to another Apple article with links to download various macOS installers.


With the USB installer connected to the iMac, you will hold down the Option key immediately after hearing the startup chime which should display the Apple boot picker menu showing an orange icon for the USB installer (orange icon denotes an external drive). In theory if the internal drive is erased, then the Mac will most likely boot automatically to the USB stick (may take several minutes since the Mac will take time to search for bootable volumes).

Nov 9, 2022 12:52 PM in response to Tuffy Nicolas

Tuffy Nicolas wrote:

Further update:

I started completely from scratch, and did everything correctly, but still encountered the same mystifying problem at the very last step. To be specific:

I chose the "Install OS X El Capitan" drive, clicked the arrow; got an Apple logo, then several minutes of progress bars as the drive loaded (as expected)
Once the "OS X Utilities" window appeared, I went to the Wifi icon at the top and successfully connected to the local wifi network
In the OS X Utilities window, I choose "Install OS X"
Then the "OS X El Capitan: To set up the installation of OS X 10.11, click Continue" window appears as expected, and I clicked "Continue"

Technically not starting from scratch if you did not erase the "Macintosh HD" volume (or better yet the entire physical drive).


There is a small chance that maybe the date needs to be changed. What date is your iMac using at the moment? For local recovery mode we needed the date to be 2017 or so, but with the recent installer you downloaded, the date should either be the current date or perhaps some time in 2020. I'm not entirely sure, and I'm not sure whether the date is the problem at all, but Apple tends to have very cryptic error messages for these installers--many times an incorrect date is the problem (which date it should be is the puzzle, but for your current installer I would think it should be current -- for Nov. 9, 2022 @ 11:33am):

date  -u  1109113322


If erasing the whole physical drive causes the error, then my guess is the iMac's hard drive is failing.


You can check the health of the hard drive by creating & using a bootable Knoppix Linux USB stick. Download the Knoppix Linux DVD .iso file with "EN" in the name for ENglish. Use the Knoppix .iso file as a source for Etcher which will create the bootable Knoppix USB stick. Option Boot the Knoppix USB stick and select the orange icon labeled "EFI". While Knoppix is booting, the Mac may appear frozen on the Apple boot picker menu, so make sure to give Knoppix lots of time to finish booting.


Once Knoppix reaches the desktop, click the "Start" menu icon on the lower left corner of the Taskbar and navigate the menus to "System Tools --> GSmartControl". Within the GSmartControl app, double-click on the iMac's hard drive icon to access the drive's health report. The complete health report can be seen by clicking the "View now" or "Save Report" buttons. Post the complete report here.


It is unfortunate that Apple makes this process so difficult.


Nov 10, 2022 11:46 AM in response to HWTech

Success! Woo-hoo!


Fixing the computer's date, using Terminal, did the trick. I accessed Terminal from the "Utilities" menu-bar option in the Installer page, and used it to change the date to the current time using the method described above. After doing so, I restarted once again with the USB stick plugged in and the Option key held down, went through all the same steps, except THIS time installation did not give me an error message and did not stall, and continued as it should to install the full El Capitan OS onto the computer, which is now complete! Restarted, input all the new user account info, did a final Software Update to get the latest available versions of everything, etc., and now it's all done and completed!


Thank you very much, HWTech. I gave you a "Solved" click on you last answer, though in truth it was all your answers combined that provided the solution.


For the record, for anyone else who ever has this problem in the future, here's what to do:


If you have an old Mac with no operating system on it, or have an old Mac with an OS but don't know the admin password:


  • First, read this whole thread, as the details are revealed in various answers throughout the thread.
  • In short: First, find out what is the most recent OS that will run on your computer's hardware;
  • Then create a bootable startup drive on a 16gb+ USB stick, as detailed on this support page: Create a bootable installer for macOS - Apple Support with that compatible version of OS X loaded;
  • Then shut down the computer, make sure a hardwired keyboard and mouse are plugged in, and that you have a accessible wifi connection in your location, then plug the USB stick into the USB port on the computer, press the "On" button and immediately hold down the Option key on the keyboard, and keep holding it until the bootable drive is visible on the screen;
  • Follow the onscreen instructions for installing the OS; connect to wifi as soon as you see the wifi logo at the upper right of your screen;
  • If the install fails, try changing the computer's date using the Terminal app (found in the"Utlities" menu in the menu bar at the top of the screen) to be the exact current time (using the command described above), and if that doesn't work try changing it to previous years one by one;
  • Hopefully the installation will proceed correctly.


Mark this question as "Solved." Thanks to everyone who had the time and patience to answer!

Nov 8, 2022 4:04 PM in response to Tuffy Nicolas

If one of your other computers is also compatible with macOS 10.11 El Capitan (does not need be using it at this time), then you create a bootable macOS 10.11 USB installer using the instructions in this Apple article:

Create a bootable installer for macOS - Apple Support


The other computer generally needs to be 2008 to 2015 model (some 2007 models may qualify as well) in order to create the bootable macOS 10.11 USB installer. You can use the information in this article to confirm which exact model Macs are compatible with macOS 10.11:

https://eshop.macsales.com/guides/Mac_OS_X_Compatibility



Nov 8, 2022 10:46 AM in response to Tuffy Nicolas

Tuffy Nicolas wrote:

What else can I do? Surely there must be SOME way to wipe clean a Mac and reinstall the OS with a new user account if you have forgotten the password.

Then you need to erase the whole physical drive if installing macOS 10.11, otherwise you will need to partition & format the whole physical drive.


If you are booting a macOS 10.11 installer, then you need to select the physical drive (or Fusion Drive) and erase it as GUID partition and MacOS Extended (Journaled).


If you are booting a macOS 10.6 to 10.10 installer, then you need to partition & format the drive using the instructions in this article:

https://eshop.macsales.com/tech_center/formatting/Mac_Formatting_6-10_R3.pdf


After successfully preparing the drive using Disk Utility, you need to quit Disk Utility and select the "Reinstall macOS" option (very important if you are booting from local Recovery Mode).


Edit: IIRC, if you boot to Recovery Mode or from the OS X 10.6 Snow Leopard DVD installer, there is a "Reset Password" option on one of the menus of the installer. I don't know if it is still there if booting into macOS 10.11 though.

Nov 9, 2022 4:46 PM in response to Tuffy Nicolas

Tuffy Nicolas wrote:

But I did erase the iMac's "Macintosh HD" volume and then its entire physical drive, immediately prior to creating the bootable USB stick.

You missed that in the summary which I did quote which is why I mentioned it.


I also, in between those two steps, changed the date of the iMac to 2017, as previously recommended.

Yes, that for when you were using the installer from local recovery mode which used an older outdated version where the certificate had expired. By now using the USB installer which you just acquired, you may need to use the correct date again although I believe another user may have posted on these forums that they had to set the date to 2020 (we don't always get all the details from users and Apple seems to make this much more difficult than it should be which does not help).


But after erasing the entire physical drive, there's no longer any way to boot into Recovery mode -- so how can I possibly change the date on the iMac now?

You still have access to the Terminal app regardless of which installer you use. The only difference between the installers is how you access them and how old/new they are. The Terminal app can be found on the Utilities menu while booted to the installer.


Prior to all this reformatting, the iMac was functioning perfectly, with no problems, and I ever ran Disk Utility on it before all these steps, and it reported zero problems. So I really don't think the drive is failing.

Sometimes reinstalling the OS will reveal hardware issues that may not have been apparent beforehand. Installing an OS does a lot of reading & writing to the drive, plus you may be using portions of the drive that you were not accessing previously or a well worn section of the drive. Even if the hard drive was replaced at some point, most likely even a replacement drive is worn out or failing. I would be very surprised if the original drive is healthy.


However, if the error occurs just before the copying of system files proceeds, then my guess is the computer's date is not compatible for this installer which is why I suggested changing the date back to 2022 or if 2022 does not work, then try 2021 or 2020. Apple's installer error messages don't always make any sort of sense so it is not easy to figure out the problem.


It is possible the USB stick is bad. Try using another USB stick since the quality of USB sticks are extremely poor.


If the error occurs later in the installation process, then a bad drive (or other hardware issue is more likely especially after the copy stage finishes and the installer reboots the Mac to finish installation). For some reason when I read the earlier reply I thought the error occurred later, but reading it again now it appears the error appears almost immediately after selecting the "Install macOS" option and the copying stage never really begins.


Nov 8, 2022 9:58 AM in response to den.thed

Thanks for the link to the "reset the password" Support page -- however, unfortunately, I tried all of the options listed on the page, and none of them worked:


  • I don't know the password
  • I don't know the hint for the password
  • The caps lock isn't on
  • The account auto-logs in at startup, so I can't "login using my Apple ID."
  • There is no other Admin account
  • I can't add a new Admin account or make any change to System Preferences because that requires knowing the password to make any changes.
  • FileVault is not on and can't be turned on without knowing the password, so I can't use "Reset Password assistant" or "Recovery Key"
  • Disk Utility does not allow the option to "Erase Disk"
  • If I would try to start up on Recovery Mode, I would still need to know the password to access the apps and options.


What else can I do? Surely there must be SOME way to wipe clean a Mac and reinstall the OS with a new user account if you have forgotten the password.


Is it possible to access the drive in "Target Disk Mode" while connected to another computer, and reinstall the OS that way? If not...what other possibilities are there?

Nov 8, 2022 1:04 PM in response to HWTech

Also, I get the same "Can't Unmount Disk" error if I try to partition the disk as well.


If I choose "Reinstall OS" from the Recovery startup page, then choose the correct startup volume, and click all the install steps correctly, I get an error message from the Apple site saying "This item is temporarily unavailable. Try again later." I get this message repeatedly -- never changes. Any way around this error either?

Nov 8, 2022 3:46 PM in response to HWTech

OK, I've made some progress, but still not quite there yet.


I changed the date on the computer using Disk Utility, as suggested, but even after doing so I couldn't unmount or erase the disk.


HOWEVER, I was then able to connect an outside computer to the one I'm trying to erase using "Target Disk Mode," and that did work, and was able (using the other computer's OS and Disk Utility) to finally erase the top-level disk of the computer in question (an old iMac). So all the old files and user accounts are now wiped, which is success with Step 1. However, I was NOT able to install a new version of El Capitan onto the iMac using the other computer, because the other computer is running an even older version of MacOS (10.6.8) which couldn't cope with installing a newer OS on an outside drive.


Now, in a complicated daisy-chain, I have connected yet a third newer computer (that unfortunately doesn't have the right port for Target Disk Mode) to the older computer, and via this means I can now see the iMac's hard drive on the newer computer's desktop, via the other computer. I am currently seeing if I can install El Capitan onto the iMac through this roundabout connection. Will report back.


Nov 8, 2022 3:56 PM in response to Tuffy Nicolas

I guess my updated question will be:


How can I install any version of Mac OS X onto an iMac computer that currently is wiped clean and has no existing OS on it?


Since I wiped it (the top-level drive, not merely the "volume" with the OS on it), I can no longer boot in Recovery Mode. And I don't have the original install disks.


The iMac is from 2007 and the last OSX it can run is El Capitan 10.11.6.


I am able to connect to the iMac via Target Disk mode, but don't currently have the right cables or computers to connect a newer Mac to it so that I can possibly install the OS that way.


Any suggestions?

Nov 8, 2022 4:29 PM in response to HWTech

Wow - thanks!


One of the other computers is a 12" Retina Macbook from 2015, which the list says IS compartible with creating an El Capitan bootable macOS 10.11 USB installer (albeit with "No Handoff Support (Bluetooth 4.0)").


So, would the plan then be: Create a bootable 10.11 on a USB drive, and then restart the iMac with that USB drive plugged in? Or...? Because I have no way to directly connect the 12" Retina MacBook to the iMac, as they have no ports in common. How could or would I be able to select the USB drive as the "startup disk"?

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.

How to install new OS if I don't know my user password?

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