Tvheadead contains a feature allowing the creation of an administrator recovery password in order to recover a lost administrator password.
For the purposes of this document, it is assumed that TVH runs as the user hts. If this is not true for your system, replace hts with the appropriate username for your system. It is also assumed that you have permissions to execute commands using sudo or another means of achieving root access.
Firstly, check to see if the following file exists /home/hts/.config/hts/superuser. If it does, the recovery credentials should be contained within.
sudo cat /home/hts/.config/hts/superuser
If the file does not exist, use your text editor of choice to create the file: sudo nano /home/hts/.config/hts/superuser
Enter the file as follows:
{
"username": "temporary_admin",
"password": "temporary_password"
}
Select an appropriate username and password. Do not use your existing Administrator username or password.
Restart TVH.
You should now be able to login to TVH using the recovery administrator credentials. Once logged in, go to the User configuration tab and reset the password on your normal administrator account.
Note: Depending on the age of your system, it may also be prudent to check in /var/lib/tvheadend/ for the recovery file.