How do I change the root password on a Ubuntu operating system?
Nelson,
This is the way i do it, maye there's an other way.
Ubuntu has no set password for the root user. The defult root password is your own user password, the password you set for the first user while installing Ubuntu.
These are the steps to change the password -
1.Applicatons > Accessories > Terminal.
2.In the new window that opens write "sudo passwd".
3.the system will ask for the new root password.
If you are using Unbuntu, then by default there is no password set for the root user. In order to log onto root, you have to initially create your own password. this password will be the password that you set for the first user that you created while installing the OS.
To manually set the password type "sudo passwd" into the command shell and then confirm your password.
I downloaded a user app the makes it easy to do stuff like that go on add and remove app and look for a user profile editor and it helps alot with stuff like that
Click "Applications" and then click "Accessories" on the top taskbar in the Ubuntu desktop.
Click "Terminal" to open a terminal window.
Type the following command at the Linux prompt and press the "Enter" key:
sudo passwd
To change the Administrator account password, the password of "root" is changed.
The "sudo" command gives the current user temporary Administrator access, in this instance, to change the password of "root."
First, the user will see a Unix prompt asking for the current user's password.
Type the user password for the current user account. Press the "Enter" key. Next, Unix will prompt the user for the new password for "root."
Type the new password for "root." Press "Enter." Finally, a Unix prompt will require a confirmation of the password.
Retype the new password for root, and press "Enter." The Administrator (root) account password for Ubuntu is now reset
or
Boot computer into recovery mode. Reset your computer and as it is booting, hold down the "Shift" key on your keyboard.
You will be presented with the boot menu.
Select "Recovery Mode" from the boot menu.
It is usually the the second boot option.
Wait for computer to boot up.
You will be presented with the Recovery Menu. Select "Drop to Root Shell Prompt."
Type "ls /home" and press "Enter." Note:
The command starts with a lower case L, not a capital i.
You will be presented with a list of usernames of accounts installed on the computer.
Type "passwd username" where username is replaced by the name of the account you want to reset. For example, if the username of your account was "jeff" you would type "passwd jeff" and press "Enter." You will be prompted to create a new password.
Enter a new password of your choosing.
Note: You will see no visual response when you type in your newly selected password; however, the computer still will register the input. Press "Enter."
You will be asked to retype your password.
Re-enter the same password and press "Enter."
Your password is now reset.
Type "Exit" to return to the boot menu and select "Resume Normal Boot" to restart Ubuntu.
hope this helps
In Ubuntu 9.04 click on the main icon and select Restart.
- If Ubuntu is the only operating system on your computer you'll need to tap the ESC key as the system boots.
- If you have a dual boot or multiple-boot system the menu should appear on its own.
- At the root level you'll get a boot menu. Select the one that says "recovery mode" and press Enter.
- Ubuntu continues to load until you reach the Recovery Menu.
- Arrow down to "
netroot
" which states Drop to root shell prompt with networking and press Enter.
- Now, at the root type "
password username
" (where username is the account whose password you want to change) and press Enter.
- You'll be prompted to
enter a new password
.
- You will not see the password or any evidence that you are typing.
- Retype the password. If both passwords match you'll have successfully reset your password.
- Press Enter to continue booting into Ubuntu.
hope it helps
5,472 views
Usually answered in minutes!
I can't change my root password, how can I find out what it is?
I remember my password but Unbuntu also asks for a userid, which I never entered...
×