Default Root Password For Ubuntu | Default 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.

Updated: 16 Apr, 24 by Antoniy Yushkevych 7 Min

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 publically. The uniqueness 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 with the world.

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 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 choice for servers. However, there are specific tasks for which one has to depend upon 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 along with the applications and games for users. Besides this, some users still find it hard while executing 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.

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 pretty much easier to reset or change the Ubuntu root password by 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.

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:


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 root account password is locked in Ubuntu.

Disable root user account in Ubuntu?

If you enabled the Ubuntu root user in Ubuntu, you have to disable it, and you have to perform a few minor changes. Set the Ubuntu root password to expire. To disable the root accounts, use the following command:

Sudo passwd -1 root

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.

Default Root Password For Ubuntu

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, 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