To change the root password on Fedora Linux, you need to log in as the root user or use sudo
to run the following steps:
- Open a terminal window.
- Type the following command to change the root password:
sudo passwd
- Enter the current root password, and then follow the prompts to enter and confirm the new password.
- After you have confirmed the new password, the password for the root account will be changed.
That’s it! The root password for your Fedora Linux system has now been changed.