$ passwd root
4. When prompted, enter your temporary root password, and then enter it again to confirm it.
Note: This command must be run as the root user.
After you finish the task that requires a temporary root password, delete the root password by running the following command:
$ passwd –l root
$ passwd –l root