From 6a890f16fd7d1ed6ade33df2bda3f85acac0a988 Mon Sep 17 00:00:00 2001 From: Peter Boy Date: Mon, 19 Dec 2022 20:35:43 +0100 Subject: [PATCH] #524 Fixed some minor issues. --- modules/ROOT/pages/reset-root-password.adoc | 23 ++++++--------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/modules/ROOT/pages/reset-root-password.adoc b/modules/ROOT/pages/reset-root-password.adoc index a8908b0..bd041ce 100644 --- a/modules/ROOT/pages/reset-root-password.adoc +++ b/modules/ROOT/pages/reset-root-password.adoc @@ -1,7 +1,7 @@ [[chap-how-to-reset-a-root-password]] = How to Reset the root Password The Fedora docs team -:revnumber: F35 +:revnumber: F36 :revdate: 2022-01-10 :category: Administration :tags: Password @@ -22,11 +22,8 @@ There are two common methods to reset the root password if it is forgotten or lo == How to reset the root password in Rescue Mode [NOTE] - ==== - Changing passwords as root will not prompt for the old password. - ==== While booting the system the xref:bootloading-with-grub2.adoc[GRUB2] menu will be displayed. @@ -39,6 +36,7 @@ To boot the system into rescue mode using `bash` follow these steps: . Use the arrow keys to go to select the line begging with `linux`, `linux16`, or `linuxefi`. . Go the the end of that line and include a space and the following `rw init=/bin/bash`. ++ [Note] ==== If your disk is encrypted, you may need to add `plymouth.enable=0` @@ -48,11 +46,8 @@ To boot the system into rescue mode using `bash` follow these steps: . Run the command: + [source,bash] - ---- - passwd - ---- + You will be prompted to enter the new root password twice. @@ -60,22 +55,14 @@ You will be prompted to enter the new root password twice. . Restore the SELinux context and permissions with: + [source,bash] - ---- - touch /.autorelabel - ---- - + - [WARNING] - ==== - If you do not restore the SELinux permissions, the boot process may fail. You may have to do a hard-reboot and start back at step 1. - ==== . Reboot the machine with: @@ -87,6 +74,7 @@ You may have to do a hard-reboot and start back at step 1. The system may take a moment to boot while SELinux relabels its permissions on the filesystem. If you see the Plymouth boot screen you can press the `ESC` key on your keyboard to view the SELinux progress. + Once it is complete, your system is ready and your root password has been successfully changed. [[sect-reset-password-using-the-fedora-live-media]] @@ -94,8 +82,9 @@ Once it is complete, your system is ready and your root password has been succes [NOTE] ==== -To download and create a live USB of Fedora Workstation, follow the instructions on the xref:creating-and-using-a-live-installation-image.adoc[Fedora USB Live Media Quick Doc]. -For additional information, specifically about live media using BTRFS, see also +To _download_ and create a live USB of Fedora Workstation, follow the instructions on the xref:creating-and-using-a-live-installation-image.adoc[Fedora USB Live Media Quick Doc]. + +__For additional information__, specifically about live media using BTRFS, see also https://docs.fedoraproject.org/en-US/quick-docs/bootloading-with-grub2/#restoring-bootloader-using-live-disk[Restoring the bootloader using the Live disk] ====