Gebruikershulpmiddelen

Site-hulpmiddelen


werkinstructies:recover_root_password

Verschillen

Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.

Link naar deze vergelijking

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:<code>
-<code>+
 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 ''e'' to edit the boot profile.   * From the list of boot profiles chose the latest, which is at the top, and pres ''e'' to edit the boot profile.
  
-  * Find the line that starts with ''linux16''. In our case: +  * Find the line that starts with ''linux16''. In our case:<code>
-<code>+
 linux16 /vmlinuz-3.10.1.0-327.10.1.el7.x86_64 root=/dev/mapper/centos-root  linux16 /vmlinuz-3.10.1.0-327.10.1.el7.x86_64 root=/dev/mapper/centos-root 
 ro rd.lvm.lv=centos/swap vconsole.font=tatarcyrheb-sun16 rd.lvm.lv=centos/root ro rd.lvm.lv=centos/swap vconsole.font=tatarcyrheb-sun16 rd.lvm.lv=centos/root
Regel 23: Regel 21:
 </code> </code>
  
-  * Replace ''ro'' with ''rw'' and add to the end of that line: ''rd.break enforce=0'' +  * Replace ''ro'' with ''rw'' and add to the end of that line: ''rd.break enforce=0''<code>
-<code>+
 linux16 /vmlinuz-3.10.1.0-327.10.1.el7.x86_64 root=/dev/mapper/centos-root  linux16 /vmlinuz-3.10.1.0-327.10.1.el7.x86_64 root=/dev/mapper/centos-root 
 rw rd.lvm.lv=centos/swap vconsole.font=tatarcyrheb-sun16 rd.lvm.lv=centos/root rw rd.lvm.lv=centos/swap vconsole.font=tatarcyrheb-sun16 rd.lvm.lv=centos/root
Regel 31: Regel 28:
   * Now press ''Ctrl x''   * Now press ''Ctrl x''
  
-NOTE you could remove ''rhgb quiet'' to get more info on the boot proces in case of trouble.+<note tip> you could remove ''rhgb quiet'' to get more info on the boot proces in case of trouble.</note>
    
  
Regel 44: Regel 41:
   * Do so by exiting the chroot shell ''exit'' and then the rescue shell ''exit''.   * Do so by exiting the chroot shell ''exit'' and then the rescue shell ''exit''.
  
-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:
  
werkinstructies/recover_root_password.1459010519.txt.gz · Laatst gewijzigd: 2016/03/26 17:41 door abel