Project

General

Profile

web interface - locked out from admin functions

Added by a r over 11 years ago

I can't remember what I did, but I know i was playing around with settings, user privileges or something and now when i go to

http://[openelecip]:9981

I get a webui that only shows 3 tabs:

[electronic program guide] [digital video recorder] [about]

I know there used to be more tabs for administration, setup, etc, but I think i had accidentally removed the privileges to access those.

How do I restore?

Thanks


Replies (4)

RE: web interface - locked out from admin functions - Added by Prof Yaffle over 11 years ago

Looks like you've switched off admin rights for the user as which you're logging in.

Assuming you're on Ubuntu (it may vary based on OS), su to to hts (sudo su hts) and go to /home/hts/.hts/tvheadend/accesscontrol. In that directory, you'll find a series of numbered files, one per access control rule.

Find the one that corresponds to the username you're using (it's the one with the line "username": "<your_user_name>" in it) and make sure "admin": 1 is set. That should give you admin rights as that user.

RE: web interface - locked out from admin functions - Added by a r over 11 years ago

Sorry, I should have given more information. It's on a openelec machine, so I don't think I can sudo on it. I am using a windows laptop to access the webui. Can I use putty to access those files from the laptop and make the edits?

RE: web interface - locked out from admin functions - Added by Prof Yaffle over 11 years ago

Yes, you can access those files - they should be on the read/write filesystem somewhere, although you'll have to search. I don't have a tvh/OE system to check for you, I'm afraid.

Alternatively, uninstall the tvheadend addon and reinstall it (if a simple reconfigure doesn't allow you to do it) - that may reset everything to defaults.

RE: web interface - locked out from admin functions - Added by a r over 11 years ago

Got it. I now have access again to the configuration tab of the WebUI.

I'll leave this reply for the benefit of anyone else who searches for this.

You can't simply uninstall the tvh addon and reinstall it from within the XBMC interface (one of the things i tried first).

But you can SSH in (i used putty on my windows box) and make the changes. In my case there files named (numbered) 1,3 and 4.

1 was for admin, and in the file admin was already set to 1. I was puzzled. But to make sure, I made the change for files 3 and 4.

just use the command

nano #

where # is the file number.

also, the path from root is:

.xbmc/userdata/addon_data/service.multimedia.tvheadend/accesscontrol/

and in that directory i found the files 1,3 and 4.

Thanks.

    (1-4/4)