+1 (506) 500-5957 sales@monovm.com Get US VPS for 50% OFF!

Ubuntu Default Root Password? [Change Ubuntu Password]

Discover Ubuntu default root password and gain privileged access to your system. Learn how to unlock the full potential of your Ubuntu installation.

Posted: 06 Sep, 21 Updated: 27 Jun, 23 by Antoniy Yushkevych 14 Min

List of content you will read in this article:

Unlike Windows or Mac, Ubuntu is another unique and widely known operating system based on the Debian Linux distribution. Ubuntu is available for everyone to use publicly. The uniqueness of its name sounds the history is even more unique and connected to African words. "Ubuntu" is an African word that means 'humanity '. The distribution represents the best of what the world's software community shares.

It was officially released in 2004, and now, after more than 15 years, its major OS has many editions: Desktop, Server, and Core for the Internet. All the Ubuntu editions can run all alone on the computer. Earlier, having few passionate and interested users and a good fan base, the software selection of the Ubuntu desktop was not as big as Windows or MAC. Until now, Ubuntu has maintained its place in the technical world as the most preferable and mainstream server choice. However, there are specific tasks for which one must depend on your PCs and various tasks.

Years passed, and the community at present is even bigger now. Ubuntu is the best match for your daily needs. The desktop version of Ubuntu is very polished and comes with a unique user interface, applications, and games for users. Besides this, some users still find it hard while execute some commands in the terminal for some tasks.

Ubuntu is always free of cost, and there is no extra fee for Ubuntu. The root users have full access to every command and resource on the system without any restriction.

Changing the root password in Ubuntu is a straightforward process that enhances system security and access control. Follow these simple steps to modify the root password and ensure the integrity of your Ubuntu installation:

  1. Open the terminal by pressing Ctrl+Alt+T or searching for "Terminal" in the Ubuntu Dash.
  2. Type the command "sudo passwd root" and press Enter. You will be prompted to enter your current user password.
  3. After authenticating, you can set a new password for the root user. Make sure to choose a strong and secure password.
  4. Retype the new password when prompted to confirm.
  5. Once the password change is successful, you can exit the terminal.

Remember, changing the root password grants you full administrative privileges, so it's essential to keep it confidential and ensure it complies with good security practices. Regularly updating your root password helps protect your Ubuntu system from unauthorized access and potential security breaches.

By following these step-by-step instructions, you can ensure that your root password is unique and resilient against unauthorized access.

  1. Launch the terminal by pressing Ctrl+Alt+T or searching for "Terminal" in the applications menu.
  2. To change the root password, you need administrative privileges. Execute the following command to access root privileges: sudo -i
  3. Once you have root privileges, enter the following command to change the root password: passwd

You will be prompted to enter a new password. Make sure to choose a strong and secure password that includes a combination of uppercase and lowercase letters, numbers, and special characters. Note that the password will not be visible as you type.

  1. After entering the new password, you will be prompted to confirm it. Re-enter the password carefully, ensuring it matches exactly as you intended.
  2. If the password change is successful, you will receive a confirmation message. Your Ubuntu system's root password is now updated.

Remember to keep your root password confidential and avoid using easily guessable information. Regularly changing your passwords enhances the overall security of your Ubuntu system.

Changing Ubuntu's root password using the GUI is a straightforward process that ensures enhanced security for your system. Follow these simple steps to modify the root password with ease.

  1. Launch the Terminal: Open the Terminal by clicking on the Applications menu, typing "Terminal" in the search bar, and selecting the Terminal application.
  2. Access User Accounts: Type "sudo gnome-control-center user-accounts" command in the Terminal and press Enter. This command will open the User Accounts settings.
  3. Authenticate: Enter your user password when prompted to authenticate your access.
  4. Modify Root Account: In the User Accounts settings, select the " root " account and click the "Password" button.
  5. Set New Password: Enter the new password for the root account in the provided fields. Make sure to choose a strong and secure password.
  6. Apply Changes: Click on the "Change" or "Apply" button to save your changes to the root password.
  7. Confirm Changes: Close the User Accounts settings and log out of your session. To apply the new root password, you need to log back in using the updated credentials.

Remember, changing the root password in Ubuntu enhances the overall security of your system by preventing unauthorized access. Ensure you choose a unique and robust password to maintain the integrity of your Ubuntu installation.

Forgot your Ubuntu login password? If you haven't used Ubuntu for a long time, and now you want to login in, and you don't remember your password. So here is the method to reset your Ubuntu Password. You quickly get your password, and you don't even need to reinstall it.

How to reset or change root password:

It is much easier to reset or change the Ubuntu root password using simple commands. Always use this command. It helps you to create a new root password for yourself. Just open the terminal on the desktop. To open the terminal, press {Alt+Ctrl+t} on your keyboard.

Open up the terminal!

After opening the terminal, type the command sudo space passwd space root

Use the following command to become a root user and issue passwd: sudo -i. Passwd

Or you can also set a password for root users in a single go: sudo passwd root

Test your root password by typing the given following command: su -


  • [ Sudo passwd root ] & press enter
  • Enter the new root password and press Enter button
  • Retype root password and enter
  • Password changed successfully

To verify your new password, use this command.

  • su root  & press Enter key 
  • Now Enter the new given password of your Ubuntu and press Enter Key

Now you can use your new Ubuntu Root Password. You have successfully made a new password to the Ubuntu root terminal.

To reset the root password in Ubuntu from recovery mode, you can follow these steps:

  1. Start or restart your Ubuntu system.
  2. When the GRUB boot menu appears, select the advanced options for Ubuntu and choose the recovery mode option. If you don't see the GRUB boot menu, you may need to press and hold the Shift key during startup to make it appear.
  3. In the recovery mode menu, select the option that says "root Drop to root shell prompt." This will drop you into a root shell with root privileges.
  4. Remount the file system in read/write mode by running the following command:

mount -o remount,rw /

  1. Next, you need to change the root password. Use the following command to set a new password:

passwd root

You will be prompted to enter the new password twice. Note that when you type the password, it won't be visible on the screen for security reasons. Press Enter once you've entered the new password.

  1. After setting the new password, you can reboot your system by running:


Once the system restarts, you can log in with the newly set password as the root user.

Remember to keep the root password secure and make sure to remember it or store it in a safe place.

You have the option to switch on or off the automatic login for users. You can log in to your Ubuntu system in case the root is disabled by default. Ubuntu root password is disabled by default due to some security reasons. This method explains to you how to enable the Ubuntu root password.

Sudo Users

Ubuntu users highly recommend performing system tasks by granting access to the tool name sudo. To organize and run a program Sudo is quite essential. The initial user created by Ubuntu is already a member of the study group. If you want to access another user, add the user to the sudo:

usermod -AG sudo username

To elevate temporary root users privileges, run the command prefix sudo:

sudo some-command

The first time you use Sudo, you will be prompted to enter the password. If you want to run the command with sudo without entering the password, you must edit the sudoers file.

 sudo visudo

It will open the / etc/ sudoers file with your desired command line to edit. Copy the following given line by replacing username with your desire username:


By default, the root account is disabled in Ubuntu, The ubuntu default user for Ubuntu VPS Server are as follows:

Username: `ubuntu`
Password: `No default password`

When you first install Ubuntu Server, you are expected to set your own password during the initial setup process. If you haven't set a password yet, you will be able to log in as the `ubuntu` user without a password and will be prompted to set one upon first login.

It's important to note that it is highly recommended to set a strong and secure password for the `ubuntu` user as soon as possible to ensure the security of your Ubuntu Server installation.

Ubuntu is both the username and the password. A username and password are specified to Ubuntu during the installation. You can't find any default login password of Ubuntu or any operating system. By default, the Ubuntu default root password is locked in Ubuntu.

By default, the root account is disabled in Ubuntu, and it is recommended to use the `sudo` command to perform administrative tasks. However, if you still wish to enable the root account, you can follow these steps:

1. Open a terminal: Press `Ctrl + Alt + T` on your keyboard to open a terminal window.

2. Type the following command to set a password for the root account:

sudo passwd root

Press Enter.

3. You will be prompted to enter your user password. Type your password and press Enter.

4. Next, you will be asked to enter the new password for the root account. Type your desired password and press Enter. Please note that while typing the password, no characters will be displayed on the screen for security reasons.

5. Confirm the new password by typing it again and pressing Enter.

Once you have completed these steps, the root account will be enabled, and you can log in as the root user using the provided password. However, it is important to exercise caution when using the root account, as it grants full administrative privileges, which can be potentially risky.

In Ubuntu, the root account is typically disabled by default, and users are encouraged to use the sudo command to perform administrative tasks. However, if you have enabled the root account and want to disable it, you can follow these steps:

  1. Open a terminal on your Ubuntu system.
  2. Run the following command to set a password for the root account (if you haven't already done so): sudo passwd root

You will be prompted to enter and confirm a new password for the root account.

  1. Once the root password is set, run the following command to lock the root account: sudo passwd -l root

This command locks the root account, effectively disabling it.

After following these steps, the root account should be disabled on your Ubuntu system. Using the sudo command with your regular user account for administrative tasks is recommended instead of relying on the root account.

Here you can find the pros and cons of using Ubuntu leaving root logins disabled by default, includes:

  • People often forget their login passwords occasionally (the root password).
  • It avoids the access of "I can do anything" login by default. It will prompt for a password earlier; the changes can happen!
  • Sudo adds a log access of the command(s) run (in /var/log/auth.log). In case you were in trouble, you can go to the authorities and run.
  • Every cracker trying to brute-force their manner in on a server will know it has an account named root and could try that first.
  • What they do not know is the usernames of your other users. Due to the fact that the root account password is locked, this attack doesn't pose any threat at all as there may be no password to crack or guess inside the first location.
  • Allows easy transfer of admin rights by adding or removing users. When you use only one Ubuntu root password, you could change the root password if you forgot.
  • Sudo may be set up with a safety policy.

This Ubuntu root account password should not be shared with all people who need to perform the desktop's administrative task(s).

Automatically the authentication expires after some time (you can also set the time duration). So if you walk away or leave your desktop a few times from the terminal after running commands as root using sudo, you will not be leaving a root terminal open indefinitely.

The root user password is disabled, but that does not mean your Ubuntu root account has been removed. Logging in as the root user is impossible because no passwords have been set for the root account. To enable the Ubuntu root password, which is disabled by default due to security reasons, you need to set the Ubuntu root password. While entering the password, make sure to use different numerals, special characters, or letters to make a strong password. Hence, setting up a unique combination of root passwords is crucial to maintaining your account's security.

You can also add special characters to your password. Add up to at least 16 characters with upper, and lowercase letters and numbers. It is how we can change the default root password.

Antoniy Yushkevych

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at a.yushkevych@monovm.com