Linux change root password

Linux basic commads FAQ:

Simple task for simple minds 🙂

Q. How do I change the root password on a linux ( unix ) operating system ?
R. What you need to do in order to change the root account password on a linux or unix machine is:
– open a terminal an login as root ( if the system permits loging in as root )
– open a terminal, login with your account and type “su” to become root.
Enter the ( old ) root password to login
then type “passwd” and it will prompt you for a new password.
root@ibm:/# passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password: **********
Re-enter new password: **********

Password changed.


This should be all.
P.S. The password should be rather complex, containing numbers and letters. However try to pic one that you will remember easily, but not known by everybody.



One Response to “Linux change root password”

  1. elearning Says:

    Thanks alot for this great tip!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: