updated notes
This commit is contained in:
@@ -913,3 +913,33 @@ sudo vim /etc/resolv.conf # Edit the resolv.conf file
|
||||
### change the nameserver to 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
|
||||
```
|
||||
Reference in New Issue
Block a user