This is an old revision of the document!


Changing the default root (ssh) password

Security is a big name for a retrogaming OS. Batocera is not a designed to be a secure OS. Don't expose it to the open Internet: you are warned and you will take all responsibility for what happens, however, there is the option to Enforce security in batocera, this will have two effects upon rebooting:

  1. The password for root will be changed from linux to a randomly generated password, which you can see in System Settings, Security section.
  2. Access to the shared folders from another computer over the network using CIFS (also known as SMB or Samba) will require you to provide the user name root and the password

However, if you want to change the password yourself, you need to do the following:

  • Connect to your Batocera using SSH on another device
  • In EmulationStation, go to the System settings, then to Advanced, and then to Security.
  • Enable the Enforce Security setting.
  • In the terminal connected using SSH, type the following command : batocera-config setRootPassword [password] (replace [password] by the password you want).
  • Then, use the batocera-config getRootPassword command to see if your changes were applied.
  • Reboot the system, and you should be able to connect to it using the new password.
  • security.1617646719.txt.gz
  • Last modified: 5 years ago
  • by fishou