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.

No comments:

Post a Comment