If you are a Linux user, particularly Ubuntu, and are the only person that uses your computer, sometimes the fact that your operating system constantly requires for your password every time you log in, then at a certain moment you might want to decide to get rid of it. All you need to do is to follow the next steps carefully and you will be ready to go.
- Run a new terminal. This is essential, since, as you already know, every important command and feature of Ubuntu and Linux in general must be done in this way
- Run the command ‘sudo visudo’. This will at first require the current root password, as every line starting with ‘sudo’ does.
- Type the root password and hit return
- A new document will now open in your terminal, which will require some editing. Specifically, a new line should be added in the end of this document. This line is ‘username ALL=NOPASSWORD:ALL’. As you can guess, this will make your operating system stop asking about your root password every time you log in, regardless of the user you use for this process.
- Save the edited document and make sure the changes are active.
- Restart your computer and check to see whether you can log in without your root password.
As you can see, getting rid of the root password is a rather easy process and sometimes it will save you a lot of time. However, make sure you only do this if you are the only person who uses your account on your operating system, because otherwise your security will be exposed.
This password removal tweak will also work for ‘sudo’ commands as well, making it even simpler for you as a Linux user.