User Tools

Site Tools


linux:redhat_resetpasswd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:redhat_resetpasswd [2021/01/01 21:25]
127.0.0.1 external edit
linux:redhat_resetpasswd [2023/06/29 10:22] (current)
manu
Line 1: Line 1:
-====== Reset root password on Redhat/​CentOS ​======+====== Reset root password on Redhat/​CentOS ======
  
 ===== Solution 1 ===== ===== Solution 1 =====
  
-Instead of starting with a kernel defined on the list, press "c" ​for command +Instead of starting with a kernel defined on the list, press **c** for command ​or **e** for edit the current line 
-add at the end of the line of default kernel: rd.break+ 
 +add at the end of the line of default kernel: ​**rd.break**
 Ex: Ex:
   linux   /​boot/​vmlinuz-3.16.7-21-default root=UUID=b5f92fce-af22-474c-9996-c66c087e2ea7 ​ ${extra_cmdline} ​ quiet resume=/​dev/​system/​swap splash=silent quiet showopts psmouse.proto=imps rd.break   linux   /​boot/​vmlinuz-3.16.7-21-default root=UUID=b5f92fce-af22-474c-9996-c66c087e2ea7 ​ ${extra_cmdline} ​ quiet resume=/​dev/​system/​swap splash=silent quiet showopts psmouse.proto=imps rd.break
Line 26: Line 27:
 </​cli>​ </​cli>​
  
-Sometimes it is necessary to relabel the complete filesystem although this should only be necessary when enabling SELinux after it has been disabled or when changing the SELinux policy from the default targeted policy to strict. To automatically relabel the complete filesystem upon reboot, do:+Sometimes it is necessary to relabel the complete filesystem although this should only be necessary when enabling ​**SELinux** after it has been disabled or when changing the SELinux policy from the default targeted policy to strict. To automatically relabel the complete filesystem upon reboot, do:
 <cli prompt='#'>​ <cli prompt='#'>​
 # touch /​.autorelabel # touch /​.autorelabel
linux/redhat_resetpasswd.1609532707.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1