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  Install Alma Linux 8 Step by Step
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.

Ispconfig Nginx Directives Laravel

In a typical Laravel installation, the public folder contains all of the publicly accessible files for the application. This includes the index.php file, which...
habibzain
47 sec read

How to Hide Version nginx

Nginx is a popular web server that powers many websites and applications. However, by default, nginx reveals its version number in the HTTP response...
habibzain
1 min read

How to Install SSH in Windows 10/11

SSH (Secure Shell) is a protocol that allows us to securely remote servers and devices over a network. SSH can be used for various...
habibzain
1 min read

Leave a Reply

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

Never miss a story from us, get weekly updates in your inbox