updated notes

This commit is contained in:
Hugh Ratsch
2025-02-20 12:44:08 -06:00
parent 753c86939c
commit 5e2473ffa5
+30
View File
@@ -913,3 +913,33 @@ sudo vim /etc/resolv.conf # Edit the resolv.conf file
### change the nameserver to 8.8.8.8 ### change the nameserver to 8.8.8.8
nameserver 8.8.8.8 nameserver 8.8.8.8
``` ```
### Recovering the Root Password
```bash
### reboot the system
sudo reboot
### press esc to get to the grub menu
### press e to edit the grub menu
### go to the line that starts with linux16
### scroll down to the end of the line
### delete rhgb quiet
### add the init=/bin/bash to the end of the line
... init=/bin/bash
### press ctrl+x to boot into single user mode
### mount the root filesystem
mount -o remount,rw /
### change the root password
passwd root
### inform selinux to allow the root password change
touch /.autorelabel
exec /usr/lib/systemd/systemd
### the system may take a while to boot
```