Some users believe that the root account has a password that they are not aware of. This is not the case. For security reasons, Raspbmc has been hardened by disabling the root account. There is no need to enable the root account in Raspbmc, and doing so increases the likelihood of you causing damage to the system. Instead, the following options are recommended:
- Prefixing the command requiring root privileges with sudo will allow you to run the command as root.
- Alternatively, you can temporarily have root privileges with the command sudo -s
If you truly wish to enable root access so that you can login as root. You can do so as follows:
sudo passwd root
You have now set a root password you can login with.
To disable the root account again:
sudo passwd -l root