Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Beide kanten vorige revisie Vorige revisie Volgende revisie | Vorige revisie | ||
|
werkinstructies:recover_root_password [2016/03/26 17:41] abel |
werkinstructies:recover_root_password [2018/08/30 08:59] (huidige) abel |
||
|---|---|---|---|
| Regel 5: | Regel 5: | ||
| This procedure will work fast on systems that have SELinux enabled and large volumes with lots of files which you definitely do not want to relabel as it is timeconsuming resulting in long down time. | This procedure will work fast on systems that have SELinux enabled and large volumes with lots of files which you definitely do not want to relabel as it is timeconsuming resulting in long down time. | ||
| - | * Get on to the console, reboot the server and interupt the bootproces by pressing the up arrow button and you get a list of boot profiles not unlike: | + | * Get on to the console, reboot the server and interupt the bootproces by pressing the up arrow button and you get a list of boot profiles not unlike:< |
| - | < | + | |
| CentOS Linux (3.10.0-327.10.1.el7.x86_64) 7 (Core) | CentOS Linux (3.10.0-327.10.1.el7.x86_64) 7 (Core) | ||
| CentOS Linux (3.10.0-327.3.1.el7.x86_64) 7 (Core) | CentOS Linux (3.10.0-327.3.1.el7.x86_64) 7 (Core) | ||
| Regel 16: | Regel 15: | ||
| * From the list of boot profiles chose the latest, which is at the top, and pres '' | * From the list of boot profiles chose the latest, which is at the top, and pres '' | ||
| - | * Find the line that starts with '' | + | * Find the line that starts with '' |
| - | < | + | |
| linux16 / | linux16 / | ||
| ro rd.lvm.lv=centos/ | ro rd.lvm.lv=centos/ | ||
| Regel 23: | Regel 21: | ||
| </ | </ | ||
| - | * Replace '' | + | * Replace '' |
| - | < | + | |
| linux16 / | linux16 / | ||
| rw rd.lvm.lv=centos/ | rw rd.lvm.lv=centos/ | ||
| Regel 31: | Regel 28: | ||
| * Now press '' | * Now press '' | ||
| - | NOTE you could remove '' | + | <note tip> |
| Regel 44: | Regel 41: | ||
| * Do so by exiting the chroot shell '' | * Do so by exiting the chroot shell '' | ||
| - | The boot process continues and you are presented by the regular login prompt. | + | The boot process continues and you are presented by the regular login prompt.\\ |
| However, we forced the system to boot in SELinux permissive mode because we needed to alter the shadow password file. We need to correct this: | However, we forced the system to boot in SELinux permissive mode because we needed to alter the shadow password file. We need to correct this: | ||