Moderator Control Panel ]

[SOLVED] Configuration - Accesscontrol

Quick start guide for beginners.

[SOLVED] Configuration - Accesscontrol

Postby marcelp1 » Tue May 07, 2013 5:54 am

I have try to add a user to password protect the GUI and disabled the default no user name/ password and now cant login :(

Enabled: Tick
Username: moi
Passowrd: moi
Prefix: 0.0.0.0/0,::/0
Streaming: Tick
Video Recorder: Tick
All configs (VR): Tick
Web interface: Tick
Admin: Tick

I have looked in root/.hts/tvheadend/accesscontrol/
{
"enabled": 1,
"username": "*",
"password": "*",
"comment": "Default access entry",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"webui": 1,
"admin": 1,
"id": "1"
}

but there is no user moi so I can re-check the password :(

How can I get access back to GUI?
Last edited by marcelp1 on Wed Jun 05, 2013 4:45 pm, edited 2 times in total.
marcelp1
 
Posts: 31
Joined: Mon Mar 18, 2013 1:01 am

Re: Configuration - Accesscontrol

Postby updatelee » Tue May 07, 2013 7:12 am

Just guessing but try adding a user moi in the console
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: Configuration - Accesscontrol

Postby marcelp1 » Tue May 07, 2013 7:20 am

Well I have just re-started the MOI and now there is HTTP authentication to watch any channels ... grrrrrr...

I would rather delete the moi user and enable back the no user/password .....
You mean on the system "sudo adduser moi"?

If so I do not think that would help ... as the tvheadend runs under root on startup i think ...
marcelp1
 
Posts: 31
Joined: Mon Mar 18, 2013 1:01 am

Re: Configuration - Accesscontrol

Postby marcelp1 » Tue May 07, 2013 7:48 am

OK, I have just tried to add new user:

vi /root/.hts/tvheadend/accesscontrol/2

{
"enabled": 1,
"username": "admin",
"password": "secret",
"comment": "Admin",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"webui": 1,
"admin": 1,
"id": "2"
}

And rebooted and still no luck :(

Anyone any ideas?
marcelp1
 
Posts: 31
Joined: Mon Mar 18, 2013 1:01 am

Re: Configuration - Accesscontrol

Postby marcelp1 » Tue May 07, 2013 8:02 am

I should have checked
https://tvheadend.org/projects/tvheaden ... figuration
before playing with the users :(

there is no ~/.hts/tvheadend/superuser on my MOI, should it be on it?
marcelp1
 
Posts: 31
Joined: Mon Mar 18, 2013 1:01 am

Re: Configuration - Accesscontrol

Postby cody » Wed May 08, 2013 1:49 am

i answered basically about the same here:

viewtopic.php?f=94&t=8495&p=28900#p28900
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Configuration - Accesscontrol

Postby gfi » Wed May 08, 2013 6:01 am

marcelp1 Wrote:I should have checked
https://tvheadend.org/projects/tvheaden ... figuration
before playing with the users :(

there is no ~/.hts/tvheadend/superuser on my MOI, should it be on it?


So, that is partly starting script problem... TVheadend starting as admin superuser, due to default parameter in startup script is -C.
Location: /etc/init.d
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

SOLVED Re: Configuration - Accesscontrol

Postby marcelp1 » Wed May 08, 2013 4:11 pm

I have managed to solve it.

I have TVHeadned running on Raspberry PI as well and got confused that the config files for TVHeadned
will be located in /home or the /root folders AND did not notice /.hts/tvheadend/ :(

# ls -ila
total 34
1 drwxrwxr-x 1 default default 2048 Mar 29 00:13 .
1 drwxrwxr-x 1 default default 2048 Mar 29 00:13 ..
405 drwx------ 1 default default 2048 Mar 28 04:27 .hts ------------ DID NOT SEE IT :( should have gone to specs ...
570 lrwxrwxrwx 1 root root 11 Dec 7 10:46 bak-linuxrc -> bin/busybox
258 drwxr-xr-x 1 root root 2048 Mar 28 20:30 bin
138 drwxrwxrwt 7 root root 2240 May 6 17:43 dev
343 drwxr-xr-x 1 root root 2048 May 6 17:43 etc
448 drwxr-xr-x 1 root root 2048 Mar 13 03:35 home
526 drwxr-xr-x 1 root root 2048 Dec 7 10:46 lib
550 -rwxr-xr-x 1 root root 168 Dec 7 10:46 linuxrc
2 drwx------ 1 root root 2048 May 6 17:43 lost+found
555 drwxr-xr-x 1 root root 2048 Dec 7 10:46 media
338 drwxr-xr-x 1 root root 2048 Jan 4 2000 mnt
556 drwxr-xr-x 1 root root 2048 Dec 7 10:46 opt
1 dr-xr-xr-x 57 root root 0 Dec 31 1969 proc
518 drwxr-xr-x 1 root root 2048 May 4 15:56 root
342 lrwxrwxrwx 1 root root 3 Dec 7 10:46 run -> tmp
3833 drwxr-xr-x 1 root root 2048 Dec 7 10:51 sbin
1 drwxr-xr-x 12 root root 0 May 6 17:43 sys
155 drwxrwxrwt 2 root root 140 May 6 17:43 tmp
571 drwxr-xr-x 1 root root 2048 Dec 7 10:46 usr
558 drwxr-xr-x 1 root root 2048 Dec 7 10:46 var
453 drwxr-xr-x 1 root root 2048 May 4 13:07 www


just edited /.hts/tvheadend/accesscontrol/2 to disable it and enabled
/.hts/tvheadend/accesscontrol/1
marcelp1
 
Posts: 31
Joined: Mon Mar 18, 2013 1:01 am


Return to Install and setup

Who is online

Users browsing this forum: No registered users and 2 guests