Hi Daniel,
Ubuntu has the root account locked by default. If you need to run as root, you use sudo username (This is recommended)
If you want to have a root shell on an Ubuntu system (It is not suggestedsuggested)
sudo -i
This is equivalent to the "su -" command
sudo -s
This is equivalent to the "su" command
SOURCE: Ubuntu Change 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.
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
150 views
Usually answered in minutes!
Hi mhlked!
Thank you for your kindly support.
I'm still trying but no news yet.
FYI: I'm trying to install Virtual Box and Java.
I just changed my user. It is Administrator now.
About sudo user:
Is it default or do I need create it? I created.
Many thanks. Daniel
×