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 ISPConfig Centos7
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 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

Virtualbox Change Storage Size

Changing the storage size of a virtual machine in VirtualBox involves a few steps. Here’s a general guide. Backup your Virtual Machine (VM) Before...
habibzain
35 sec read

Easy Setup Logrotate Nginx Ubuntu

Log rotation is an important aspect of managing log files on a Linux system, including those generated by Nginx. Logrotate is a utility that...
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