Project

General

Profile

How to reset TVH user pw on RPi2 via ssh?

Added by Stefan N. almost 10 years ago

Hi guys,

I'm running RPi2 with OpenELEC and TVHeadend. Works fine so far, but I have a little (self-made) issue:
When creating the admin user in the WebUI I obviously made a mistake and now cannot logon to the WebUI anymore. Can someone tell me whether it is possible to somehow fix this situation with a SSH console, e. g. having a look at the PW in a config file or to reset the users, anything that I can get access to the WebUI again?

Best regards

Stefan


Replies (2)

RE: How to reset TVH user pw on RPi2 via ssh? - Added by Mark Clarkstone almost 10 years ago

Stefan N. wrote:

Hi guys,

I'm running RPi2 with OpenELEC and TVHeadend. Works fine so far, but I have a little (self-made) issue:
When creating the admin user in the WebUI I obviously made a mistake and now cannot logon to the WebUI anymore. Can someone tell me whether it is possible to somehow fix this situation with a SSH console, e. g. having a look at the PW in a config file or to reset the users, anything that I can get access to the WebUI again?

Best regards

Stefan

Use ps -ef (or -w if -ef fails) to find out Tvheadend's pid and any arguments it's running as (copy and paste the ps line if you want), then kill it, kill <pid>, and manually start it again using the same arguments, but this time append --noacl to the end.

e.g.

Lines starting with $ indicate the command to be ran..

$ ps -ef | grep tvheadend

root        535     1  2 Aug01 ?        06:36:05 /usr/bin/tvheadend -f -u hts -g video

$ kill 535

$ /usr/bin/tvheadend -f -u hts -g video --noacl

Make your changes (save them too) and repeat the same steps again but without --noacl, or reboot (easiest). Note that the command above is an example, yours WILL differ so check the ps output carefully!

HTH

RE: How to reset TVH user pw on RPi2 via ssh? - Added by Stefan N. almost 10 years ago

Hello Mark,

thanks for your answer.

EDIT: yes, it worked, I had to do the restart immediately after the kill, before it auto restarts itself with old settings.
Really great, thx a lot, that saved my day! :)

// I think that would work like you described, but everytime I kill the process, it reappears with a new PID. Can I somehow prevent this "auto-restart"?

Best regards

Stefan

    (1-2/2)