How to Set Administrator Password
Your computer's Administrator account allows you to adjust system settings and make changes to the filesystem. Regardless of your operating system, you can change the administrator account password using the command line. In Windows, the...
Method 1 of 3:
Windows
-
Picture 1 of How to Set Administrator Password Understand the different types of administrator accounts. Windows creates a disabled Administrator account automatically in all versions of Windows after XP. This account is disabled for security reasons, as the first personal account you create is an administrator by default. The following method will detail enabling the disabled Administrator account and then setting a password for it.- If you want to change your personal administrator account's password, open the Control Panel and select the "User Accounts" option. Select your personal administrator account and then click "Create a password" or "Change your password".
-
Picture 2 of How to Set Administrator Password Press the .⊞ Win key and type "cmd". You should see "Command Prompt" appear in the list of search results. -
Picture 3 of How to Set Administrator Password Right-click on "Command Prompt" and select "Run as administrator". -
Picture 4 of How to Set Administrator Password Type .net user administrator /active:yes and press ↵ Enter. This will enable the Administrator account on the computer. The most common reason for activating the Administrator account is to perform automation work without having to deal with the User Access Control message appearing every time a system setting is changed.[1] -
Picture 5 of How to Set Administrator Password Type .net user administrator * and press ↵ Enter. This will allow you to change the Administrator password. -
Picture 6 of How to Set Administrator Password Type the password you want to use. Characters will not appear as you type. Press ↵ Enter after typing the password. -
Picture 7 of How to Set Administrator Password Retype the password to confirm it. If the passwords do not match, you'll have to try again. -
Picture 8 of How to Set Administrator Password Type .net user administrator /active:no and press ↵ Enter. This will disable the Administrator account. It is not recommended to keep the Administrator account active when you're not using it. Once you've set your password and performed any actions you need to as the Administrator, disable it through the Command Prompt.
Method 2 of 3:
OS X
-
Picture 9 of How to Set Administrator Password Understand the process. You can use Single User Mode to reset the administrator password for your Mac in case you have forgotten it. You don't need administrator access to perform this procedure. -
Picture 10 of How to Set Administrator Password Reboot the computer and hold .⌘ Command+S. If you continue to hold these keys as the computer boots, you will be taken to the command line. -
Picture 11 of How to Set Administrator Password Type .fsck -fy and press ⏎ Return. This will scan your hard drive for errors, which may take a few minutes. It is required in order to proceed. -
Picture 12 of How to Set Administrator Password Type .mount -uw / and press ⏎ Return. This allows you to make changes to the filesystem. -
Picture 13 of How to Set Administrator Password Type .passwd Administrator and press ⏎ Return. You can change the password for any user account by entering the user account name instead of "Administrator". -
Picture 14 of How to Set Administrator Password Enter your new password twice. You'll be prompted to enter your new password and then enter it again to confirm it. You won't see the password as you're typing. -
Picture 15 of How to Set Administrator Password Type .reboot and press ⏎ Return. This will reboot your computer and load OS X as normal. Your Administrator account will now use the new password.[2]
Method 3 of 3:
Linux
-
Picture 16 of How to Set Administrator Password Understand the risks before proceeding. Linux is designed so that you can perform administrator tasks without actually logging in as the administrator, or "root", user. As such, it is highly recommended that you use the sudo command to perform actions that require root access instead of logging in as root. Since you can use sudo combined with your own user password to make root changes, you don't actually need to set a root password. If you do want to set one, read on. -
Picture 17 of How to Set Administrator Password Open the Terminal. You'll be changing the password through the Terminal, which can be opened from the task bar or by pressing Ctrl+Alt+T. -
Picture 18 of How to Set Administrator Password Type .sudo passwd and press ↵ Enter. You will be prompted for your user password. -
Picture 19 of How to Set Administrator Password Enter your new root password. After entering your user password, you'll be prompted to create the new root password. You'll be prompted to enter it twice to confirm it. You won't see the password on the screen as you type it.[3]
Update 04 March 2020
You should read it
- How to Reset Windows 7 Administrator Password
- Get Administrator access without a password
- How to Login to Windows XP as the Administrator
- Instructions on how to activate the Admin account or reset the Admin account password
- Recover the password of the 'Log On' account in windows XP
- Recover Windows passwords when you have it
- How to Change a Computer Password Using Command Prompt
- Forget Windows 7 password still logged in Administrator account, this is how to 'hack'
- How to Reset Admin Password on Mac OS X
- How to Bypass Windows 7 Password
- How to Remember Passwords
- Set the auto-login mode to Windows XP