Wednesday, September 3, 2014

Ubuntu : How to set root password on Ubuntu / Debian / Linux Mint

How to set root password on Ubuntu / Debian / Linux Mint


FAQ : How to set root password on Ubuntu / Debian / Linux Mint Operating system ? How may I also check , the root password is working ?
Answer: Ubuntu is Debian based operating system. Whereas Linux Mint is based on Ubuntu and Debian both.

Set / reset root password on Ubuntu / Debian / Linux Mint

The steps are similar in Ubuntu,Debian and Linux Mint. It is also applicable to other Linux distro which are based on Debian/Ubuntu.
Step 1: Login into the system with system user name. For example, here the system username is “sharad
Step 2: Now set the root password.
Use the below given command to set/reset the root password.
First give the password of system user by which you log in.
Then, type root password as per your desire.Hit enter and reconfirm the password.
Note: When we set user password, it is always invisible.Hence, confidently set the password and hit enter
Now with above command the root password is set.

How to check root password is working

When you set the password in Ubuntu,Debian and Linux Mint , you can check root password by directly login from command terminal.
I believe, you are still log in with system user.Here, we are still login with username called “sharad”
Use the below given command and give root password which you have set in above section
The below given is reference from my system

No comments: