Linux Administrator

Subject: Linux Administrator                                                      Exp No.:  4

 

Aim of the Experiment:   To reset the root password using rd.break command

 

 

Software Required:  VMware, rhel7 Operating System

 

 

Theory  

            Password:      Password can be contained of Numbers, Alphabets, and Special characters. To login/enter in any secured, account/places/devices, we need a security permission, that can be either password or biometric. By entering the password we will be able to access them.

And when we talk about Root Password, here Root is a type of user. And root password means, the password through which root user can get access.

 

 

Implementation/Steps:

 

1.    1.      First I started the virtual machine.

        2. During booting time, pressed ‘e’ to take it in editing mode.

        3.  Looked for a line “Linux16” and at end of that line typed “rd.break”. And pressed CTRL+X to take it from boot into emergency mode.

        4.  After that I remounted the sysroot file system in “read write” mode.

        5.  Then used command “chroot” to go in to the chroot jail.

        6.  Then gave the command “passwd” in the command line to change the root password.

        7.  After that in the line named new password, I typed my new password and again I retyped the same password.

        8.  In next step typed “touch /.autorelabel” to save the changes.

        9.  Then I gave “exit” command two times to come out form the chroot environment.

       10.   And at last, logged out. And system got reboot.

 

 

 

Some snapshots I am attaching:

 

Started the Virtual Machine-




 After pressing “e” during booting, got this interface-

 




 Then followed steps such like this:-

 


 

 Conclusion:

                                    Finally I got Changed my root password.

 

 

 


Post a Comment

Previous Post Next Post