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 twice. After entering the password, you should see a confirmation message indicating that the password has been updated successfully.
