Linux change root password example

Basic Linux Command Example: 


Linux Change root Password.


   The step by step article on Linux change root password below show the step that you need to take to change root password.  Please note that only root user can change root password, so you need to login as root or use su command and then change root password.  If you lost your root password this article on how to reset root password may help you to reset root user password. 


Linux change root password example:


1. Open the shell terminal, type in su - command then hit 'Enter' key to be as root user on your Linux system.

su root password

[linux@fedora11 ~]$ su -


[root@fedora11 ~]#


2.  then type in passwd command as show on example below to change root user password, make sure that you retype the same password when ask...

Linux change root password example

[root@fedora11 ~]# passwd

Changing password for user root.

New password:

Retype new password:

passwd: all authentication tokens updated successfully.

[root@fedora11 ~]#


3.  Type in 'exit' and hit enter command to quit/logout the su root user

[root@fedora11 ~]# exit


[linux@fedora11 ~]$


Keywords: linux change root password, change root password, change root password linux, root password linux, linux root password