I have tried both of those methods and they ask for Apple ID. It is an iMac and it says it does not support single user mode when I try to loginyou should be able to boot into revovery mode and do a password reset, thats probably the easiest option if not in single usermode you can create a new admin account.
either of these options you can easily google to have step by step instructions
I am trying that. It came to the Utilities screen and I have been able to install Mojave OS it may take awhileif single usermode is blocked and requires a password sounds like filevault is enabled, you should be able to completely wipe the HD and do a full resinstall of the OS. Command-Option-R
So I am at the disk utility what do I do from hereYou don't need to know the previous login (assuming that you mean the account, or admin password) if you just erase the drive first.
I always recommend erasing the boot drive on a used Mac, even if you know the history of that Mac.
If you boot to Internet recovery - or to a bootable USB installer, if you have one), you can just erase the internal drive (using Disk Utility), then reinstall macOS as a new user.
The stopper might be if the previous owner left a firmware password. You will get asked for a password, if you try booting to any other drive. THAT will be a problem for you.
You will know if it has a firmware password by the appearance of the password window. It will simply be a blank box, with a padlock on the left, no words on the screen.
VERY IMPORTANT QUESTION:
When you reinstalled the OS, did you boot into:
a. recovery mode ("command-R" at boot)
or did you boot into
b. INTERNET recovery mode ("command-OPTION-R" at boot)
???
If you are getting blindsided by previous owner logins, try this:
(and yes, I realize it will take more time)
1. Power down, all the way off
2. If you have ethernet available, I suggest you connect that way (even if you have to move the iMac for now), but if you only have wifi, that can work, too.
3. Press the power on button and IMMEDIATELY hold down command-OPTION-R until you see "the internet symbol"
4. If you're using wifi, you'll need to enter the wifi password
5. The computer will take a while to "load up" all the needed software FROM THE NET
6. When you get to the utilities menu, DO NOT run the installer yet
7. Open Disk Utility
8. In the upper-left corner, choose "Show all devices" from the popup menu.
9. You want to select the TOPMOST item that represents the ENTIRE hard drive inside the iMac.
10. Now, click the erase button. I suggest you choose "Mac OS extended with journaling enabled", GUID partition format. It will be automatically converted to APFS during the Mojave install
11. Once the drive has been erased, you can quit Disk Utility and re-open the OS installer
12. NOW try to install the OS. It may restart the Mac once or twice, and will take a while. BE PATIENT.
13. When done, you should see the setup screen (like a brand-new Mac).
This will overcome any previous passwords, with ONE EXCEPTION:
It cannot wipe out a firmware password, if the previous owner set one.
Please PRINT OUT these instructions and follow them carefully.
Then get back to us.
thank you all so much. I have now cleaned the drive created my own account and am updating everythingSo long as the required password IS NOT "a firmware password", you can "blow it away" by booting into INTERNET recovery mode, then erasing the ENTIRE drive and then re-installing the OS.