Can't install an app in macOS High Sierra because of incorrect password

I'm using a Mac for the first time. I've been installing apps that I normally use. Everything was going smooth until an app asked me to enter my password.

The computer came with an already existing user named Owner and no password (it's a refurbished MacBook from 2010). I've been trying to install this app for half an hour but neither owner, Owner, or the name I use in my Apple account seem to work.

Any suggestions?


Solution 1:

Apparently your system doesn't have an Admin account. You can create one anew. An easy way to do this is to re-run the Setup Assistant. Follow the below mentioned steps:

  1. Start by shutting down your Mac. If you are not able to shut down normally, simply press and hold the power button to turn it off.

  2. Now, you need to start your Mac in a special mode called Single User mode. To start your Mac in Single User mode, simply press the power button to start, and press and hold the Command + S keys.

  3. Let your Mac complete whatever it is doing (for e.g. displaying scrolling lines of text). Once done, you'll be shown a command prompt of the form

    :/ root#

  4. Now, you'll need to manually mount the startup drive. To do so, type the following command line and press Enter:

    /sbin/mount -uw /

  5. Now, we'll delete a system file. This will make the Mac re-run the Setup Assistant. Type the following at the command line and press Enter:

    rm /var/db/.AppleSetupDone

  6. Now you need to reboot your computer normally. To do so, type the following and press Enter:

    reboot

  7. Now, let the Mac start normally. It will now start the Setup Assistant. Use it to create a new Admin account.

Once you have a new Admin account, you'll be able to perform administrative tasks and move files from the Standard account to the new admin account. You can also convert the Standard account to admin, and get rid of the freshly created admin account.