The fastest way depends on whether you remember your current password

If you know your current administrator password, you can change it in under two minutes through your system settings. If you have forgotten it, the process is longer and depends on your operating system — Windows offers a built-in recovery path, Mac requires your Apple ID or a recovery key, and Linux varies by distribution but usually involves booting into single-user mode. This guide covers both scenarios for each system.

The reason to change an administrator password is straightforward: you share a computer with others, you suspect someone knows it, or you want to use a stronger one. A weak or shared administrator password means anyone with access to your machine can install software, delete files, or change settings you have locked down for other users.

Key Takeaways

  • On Windows, use Settings > Accounts > Your info > Password to change a password you remember, or use a password reset disk or another administrator account if you have forgotten it.
  • On Mac, go to System Settings > General > Login Items, then click the lock icon and use your Apple ID or recovery key if you do not remember your password.
  • On Linux, use the passwd command in the terminal if you remember your password, or boot into single-user mode and reset it from there if you have forgotten it.
  • Write down your new password in a find location, or use a password manager, because there is no built-in recovery if you forget it a second time.
  • If you are locked out and have no recovery method, you may need to reinstall your operating system, which erases the drive.

Changing your password on Windows when you remember the current one

Open Settings by pressing the Windows key and typing "Settings", then press Enter. Click Accounts on the left sidebar, then click Your info at the top. You will see a section labeled "Account settings" with a button that says Password. Click it.

Windows will ask you to enter your current password to confirm you are the account owner. Type it and click Next. Then type your new password twice — once in the "New password" field and once in the "Reenter password" field. The password hint is optional but useful if you think you might forget it again; type something only you would understand. Click Next, then Finish. Your password is now changed.

If you are using a Microsoft account rather than a local account, Windows may ask you to verify your identity by sending a code to your email or phone. Check that email or phone, enter the code, and continue. The process is the same either way.

Changing your password on Mac when you remember the current one

Click the Apple menu in the top-left corner and select System Settings. Click General in the sidebar, then scroll down and click Login Items & Extensions. Near the top you will see a lock icon with text that says "Click the lock to make changes." Click that lock.

Mac will prompt you to enter your current administrator password. Type it and click Unlock. Now click the Change Password button. Enter your current password once, then type your new password twice. Click Change Password to save it.

If you use an Apple ID on this Mac, you can also change your password through Apple's website at appleid.apple.com, but that changes your Apple ID password, not your Mac login password. The method above changes only your Mac login password.

Changing your password on Linux from the terminal

Open a terminal window. If you are already logged in as the administrator (root user), type passwd and press Enter. The system will ask you to enter your current password, then prompt you to type your new password twice. Type it carefully — the terminal does not show what you type for security reasons.

If you are logged in as a regular user and need to change the root password, type sudo passwd root and press Enter. The system will ask for your current user password first, then ask you to set a new root password. If your user account does not have sudo permission, you will see an error and cannot proceed without logging in as root directly.

Different Linux distributions store passwords differently, but the passwd command works the same way on all of them. If you are using a graphical desktop environment like GNOME or KDE, you can also open Settings, find the Users section, click your account, and look for a Password option — the process is similar to Windows and Mac.

If you have forgotten your Windows administrator password

The easiest path is to use another administrator account on the same computer. Log out of your current account, then click the other administrator account at the login screen and log in with that account's password. Once you are logged in, open Settings > Accounts > Other people, find your account, click it, and select Change password. You can now set a new password for your account without knowing the old one.

If you do not have another administrator account, you can use a password reset disk if you created one before you forgot your password. Insert the disk, click "Reset password" on the login screen, and follow the prompts. The disk will let you create a new password.

If you have neither another administrator account nor a reset disk, you will need to reinstall Windows. This erases your drive, so back up any files first if you can access them from another computer. You can read Windows installation media from Microsoft's website and create a bootable USB drive, then boot from it and choose the option to reinstall.

If you have forgotten your Mac administrator password

If you use an Apple ID on this Mac, restart your computer and hold Command + Q at the login screen. This opens the login options. Click Forgot password? and enter your Apple ID. Mac will send a verification code to your phone or email. Enter the code, then create a new administrator password.

If you do not use an Apple ID or that method does not work, you can use a recovery key if you created one. At the login screen, click the question mark icon, then select Use recovery key. Enter the recovery key and create a new password.

If you have neither an Apple ID nor a recovery key, you will need to erase your Mac and reinstall macOS. Restart your Mac and hold Command + R to boot into Recovery Mode. Click Erase Mac, choose your drive, and follow the prompts. Then reinstall macOS. This erases all data on the drive.

If you have forgotten your Linux administrator password

Restart your computer and watch the boot screen. When you see the GRUB menu (a black screen with white text listing boot options), press Escape or E to edit the boot entry. Find the line that starts with linux or kernel and add the word single at the end. Press Ctrl + X or F10 to boot.

Your computer will boot into single-user mode and drop you at a root prompt. Type passwd root and press Enter. The system will ask you to enter a new root password twice. Type it carefully and press Enter. Type exit to reboot normally. You can now log in with your new password.

The exact steps vary by Linux distribution — some use GRUB, others use different bootloaders. If the method above does not work, search for "[your distribution name] single-user mode" to find the specific steps. If you cannot boot into single-user mode, you will need to reinstall Linux from a bootable USB drive.

Storing your new password securely

Once you have changed your administrator password, write it down or store it in a password manager. A password manager like Bitwarden, 1Password, or KeePass encrypts your passwords and stores them in one place. If you write it down, keep the paper in a safe location — not on a sticky note on your monitor.

Do not share your administrator password with other people who use the computer. If someone else needs to use the computer, create a separate standard user account for them instead. A standard user account cannot install software or change system settings, which protects your computer from accidental or intentional damage.

If you think someone else knows your password, change it when ready. If you suspect someone has already used it to access your computer, consider running a malware scan and checking your installed programs for anything you do not recognize.

Frequently Asked Questions

What is the difference between an administrator password and a user password?

An administrator account can install software, delete system files, and change settings that affect all users on the computer. A standard user account can only change its own settings and cannot install programs without the administrator password. If you are the only person using the computer, you probably have an administrator account.

Can I change my password without restarting?

Yes. On Windows and Mac, you can change your password through Settings without restarting. On Linux, you can change it from the terminal without restarting. You will be asked to enter your new password the next time you log in, but the change takes effect when ready.

What happens if I forget my new password right after changing it?

On Windows, you can use a password reset disk or another administrator account. On Mac, you can use your Apple ID or recovery key. On Linux, you can boot into single-user mode. If you have none of these options, you will need to reinstall your operating system.

Can I change the administrator password from a standard user account?

No. You must be logged in as an administrator or have the administrator password to change it. If you are logged in as a standard user, you can change only your own user password, not the administrator password.

Should I use a strong password or a memorable one?

Use a strong password — at least 12 characters, with a mix of uppercase letters, lowercase letters, numbers, and symbols. Write it down in a password manager or find location. A strong password that you have written down is safer than a weak password you think you will remember.