Skip to main content

How to change the password of the root user when you forget the previous password?



Hi, welcome to my blog! Here I am going to show you to change the password when you are not logged in as a unprivileged user but with full sudo access, or as root. Actually I am posting this for RHEL 7 (Red Hat Enterprise Linux 7) users. One thing you must know is that if there is any mistake it will affect the Linux OS. So be careful. Here is the video.




If there are any doubts please comment.  And if you liked this please share. Bye for now.

Comments

Post a Comment

Popular posts from this blog

How to make a Linux Swap partition (RHEL7)?

Hi! I am Rohit.  In this post I am going to teach you how to create a Linux Swap partition. Linux Swap makes an extra space. It is same as creating a normal partition, a little different.   I am using a virtual machine. You can list your blocks by the command ‘lsblk’ . Now, let’s start! 1    First create a partition with fdisk . 2      Now type t to select the type and the partition number which would be asked after you type t . Because I have only created this partition it would be automatically selected. You can type L to list all the codes. Let’s type 82 to change the partition to Linux Swap . Type w to alter the partition table.   Also type partprobe /dev/vdb . 3      Type mkswap /dev/vdb1 to format our swap partition. Now copy your partition’s UUID . You can use the blkid command to find out your UUID . Next, type vim /etc/fstab to edit the file. 4      Mov...

A new thing everyone is trying to do in HTML!

Hi! Long time no see. This time I am going to introduce HTML. So Now I am going to teach you to make sections with ordered tags. For example, like this. In order to do like this we should use some CSS and also create multiple pages! Now let’s start! 1  Now make the base of the page in notepad and save it. 2  Copy this and make 3 or 4 files and save it. 3  Now fill your html pages with contents. 4  After you filled your contents in the webpage according to what you want, start the style tag inside the head tags to write CSS in all of your sub pages and page. 5  If you are familiar with ordered lists you can do like this. First, start the ul tags and add the link of our subpages. We should write the path of our subpages in the href attribute. 6  Start writing CSS inside the style tags. Start with the ul tags. We need to specify the background color, overflow, padding and margin and style type. Next, inside the li {...