habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Easy Reset Password Root Alma Linux

37 sec read

reset password root almalinux

Hi Dude. Some time we forget to remember our password. Today i will write about easy step to reset password root in Alma Linux. Ok lets do it.

Press ‘e’ in GRUB display

In GRUB display, select ‘e’ to edit.

reset password root alma linux

Change Read Only to Read Write

And then wil show display like this. Attention with red line. Show word "ro".

reset password root alma linux

edit "ro" with rw init=/sysroot/bin/sh

reset password root alma linux

After that, press “ctrl + x”. And will show below.

Mount CHROOT and Reset Password ROOT Alma Linux

Ok, lets mount or change root owner with chroot. After that change password root.

if Your SELINUX is active before, run the command below to enable SELinux relabelling.

:/# touch /.autorelabel
Enable SELinux Relabelling

Ok, thats finished. You can give exit command and then reboot or press soft reset panel in server to restart.

That is easy way reset password root. This method can used too in centos or red hat operating system.

As we know, alma linux is 1:1 compatible with Red Hat Package. And claimed successor centos 7 that will be discontinued.


Let's Buy Me Coffee.

Buy Me a Coffee at ko-fi.com

https://saweria.co/habibzain
https://ko-fi.com/habibzain
See also  Wget Recursively Download All Files and Folder
habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Centos Failed Update Kernel

Today I did a kernel update on my server with Centos 7 OS. At the end of the update process, I found a kernel...
habibzain
1 min read

Easy Fix Missing mirrorlist http://mirrorlist.centos.org on CentOS 7

When running yum update or command that utilize the yum system, errors similar to the following are produced: If you’re encountering issues with the...
habibzain
1 min read

Easy Create Laravel Project with Composer

Requirement Laravel, a popular PHP framework, is renowned for its elegant syntax and robust features, making it a top choice for web developers. One...
habibzain
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

Never miss good article from us, get weekly updates in your inbox