ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Recovering the root password (rd.break)

Lesson 9.28 minAdvancedDecember 1, 2026

Sign in to read this lesson

The RHCSA exam often starts right here — "the server's root password is unknown, recover it". In real work too, a forgotten password or a server left behind by an admin who quit comes up often. In this lesson we learn to change the root password on a RHEL 9 server with console access by stopping in the initramfs, plus the important final SELinux step.

What you will learn

  • Physical or virtual console access is needed — this cannot be done over SSH.
  • In GRUB: e, rd.break at the end of the linux line, Ctrl+X → the initramfs shell (switch_root:/#).
  • The sequence: mount -o remount,rw /sysroot → chroot /sysroot → passwd root → touch /.autorelabel → exit → exit.
  • Without .autorelabel the new /etc/shadow gets the wrong SELinux context and nobody can log in.
  • Protection: a GRUB password (grub2-setpassword) and restricted physical access — anyone with console access knows this method.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.