To set a password for the root user, you can use the following command:
sudo passwd root
You will be prompted to enter a new password for the root user. After entering the password, you will need to confirm it by entering it again. Once completed, the root password will be set.
