Setting the root password Choose a password for user root and set it by running the following command: passwd root