I tried again with latest git build. I tried both as user hts as well as user root to exclude hidden access rights permission on files or devices. but result is the same, authentication fails when changing the default * user to any other name or when adding a new user and disabling the * user.
here is a transcript of what I tried:
HTS Tvheadend 3.9.1367~gca742e0-dirty
root@raspberry03:~# uname -a
Linux raspberry03 3.12.22+ #1 PREEMPT Sun Jun 15 09:34:20 CEST 2014 armv6l GNU/Linux
- Show access rights of dvb device
pi@raspberry03 /dev/dvb $ ls -lR
.:
total 0
drwxr-xr-x 2 hts video 120 Jan 1 1970 adapter0
./adapter0:
total 0
crw-rw---T 1 hts video 212, 4 Jan 1 1970 demux0
crw-rw---T 1 hts video 212, 5 Jan 1 1970 dvr0
crw-rw---T 1 hts video 212, 3 Jan 1 1970 frontend0
crw-rw---T 1 hts video 212, 7 Jan 1 1970 net0
- become root to delete previous config in hts home
pi@raspberry03 /dev/dvb $ sudo i
root@raspberry03:~# cd /home/hts
root@raspberry03:/home/hts# ls -al
total 40108
drwxr-xr-x 9 hts hts 4096 Aug 19 14:16 .
drwxr-xr-x 4 root root 4096 Sep 28 2013 ..
-rw------ 1 hts hts 8647 Aug 30 20:55 .bash_history
drwx------ 3 hts hts 4096 Aug 12 11:45 .hts
root@raspberry03:/home/hts# cd .hts
root@raspberry03:/home/hts/.hts# rm -r tvheadend/
root@raspberry03:/home/hts/.hts# sync
- now become user hts to do initial startup of tvheadend
root@raspberry03:/home/hts/.hts# su - hts
hts@raspberry03:~$ tvheadend -C
2014-09-05 20:14:00.973 [ INFO] main: Log started
2014-09-05 20:14:03.084 [ INFO] charset: 138 entries loaded
2014-09-05 20:14:03.098 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
2014-09-05 20:14:03.110 [WARNING] access: Created default wide open access controle entry
2014-09-05 20:14:03.115 [ INFO] CSA: Using 32bit parallel descrambling
2014-09-05 20:14:03.117 [ INFO] epggrab: module eit created
2014-09-05 20:14:03.119 [ INFO] epggrab: module uk_freesat created
2014-09-05 20:14:03.121 [ INFO] epggrab: module uk_freeview created
2014-09-05 20:14:03.123 [ INFO] epggrab: module viasat_baltic created
2014-09-05 20:14:03.184 [ INFO] epggrab: module opentv-skyit created
2014-09-05 20:14:03.186 [ INFO] epggrab: module opentv-ausat created
2014-09-05 20:14:03.188 [ INFO] epggrab: module opentv-skyuk created
2014-09-05 20:14:03.211 [ INFO] epggrab: module pyepg created
2014-09-05 20:14:03.213 [ INFO] epggrab: module xmltv created
2014-09-05 20:14:19.829 [ INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
2014-09-05 20:14:19.830 [ INFO] epggrab: module /usr/bin/tv_grab_eu_egon created
2014-09-05 20:14:19.830 [ INFO] epggrab: module /usr/bin/tv_grab_combiner created
2014-09-05 20:14:19.830 [ INFO] epggrab: module /usr/bin/tv_grab_it created
2014-09-05 20:14:19.832 [ INFO] dvr: Creating new configuration ''
2014-09-05 20:14:19.832 [WARNING] dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/home/hts". This can be changed from the web user interface.
2014-09-05 20:14:19.845 [ NOTICE] START: HTS Tvheadend version 3.9.1367~gca742e0-dirty started, running as PID:3121 UID:108 GID:113, CWD:/home/hts CNF:/home/hts/.hts/tvheadend
- now I access via webinterface and change the * user to my user. Also I "remember the user/password" in firefox.
2014-09-05 20:15:44.320 [ ERROR] HTTP: 192.168.2.100: /api/mpegts/network/grid -- 401
2014-09-05 20:15:44.323 [ ERROR] HTTP: 192.168.2.100: /api/mpegts/mux/grid -- 401
2014-09-05 20:15:44.326 [ ERROR] HTTP: 192.168.2.100: /api/mpegts/service/grid -- 401
2014-09-05 20:15:44.330 [ ERROR] HTTP: 192.168.2.100: /api/channel/grid -- 401
2014-09-05 20:15:44.333 [ ERROR] HTTP: 192.168.2.100: /api/channeltag/grid -- 401
2014-09-05 20:15:44.350 [ ERROR] HTTP: 192.168.2.100: /api/access/entry/grid -- 401
2014-09-05 20:15:44.375 [ ERROR] HTTP: 192.168.2.100: /api/mpegts/mux_sched/grid -- 401
2014-09-05 20:15:44.416 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/ca/grid -- 401
2014-09-05 20:15:44.420 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/video/grid -- 401
2014-09-05 20:15:44.422 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/audio/grid -- 401
2014-09-05 20:15:44.423 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/teletext/grid -- 401
2014-09-05 20:15:44.424 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/subtit/grid -- 401
2014-09-05 20:15:44.424 [ ERROR] HTTP: 192.168.2.100: /api/esfilter/other/grid -- 401
2014-09-05 20:15:44.494 [ ERROR] HTTP: 192.168.2.100: /static/extjs/resources/images/default/shadow.png -- 401
2014-09-05 20:15:44.497 [ ERROR] HTTP: 192.168.2.100: /static/extjs/resources/images/default/shadow-c.png -- 401
2014-09-05 20:15:44.497 [ ERROR] HTTP: 192.168.2.100: /static/extjs/resources/images/default/shadow-lr.png -- 401
2014-09-05 20:15:52.509 [ ERROR] HTTP: 192.168.2.100: /comet/poll -- 401
2014-09-05 20:16:21.651 [ ERROR] HTTP: 192.168.2.100: /api/hardware/tree -- 401
- ot appears that each page gives an 401 error once, but the webinterface works flawless without any unauthorized message by now.
- I hit ^C to stop tvheadend
^C
2014-09-05 20:16:46.966 [ INFO] epgdb: saved
2014-09-05 20:16:46.972 [ INFO] epgdb: brands 0
2014-09-05 20:16:46.972 [ INFO] epgdb: seasons 0
2014-09-05 20:16:46.972 [ INFO] epgdb: episodes 0
2014-09-05 20:16:46.972 [ INFO] epgdb: broadcasts 0
2014-09-05 20:16:46.998 [ NOTICE] STOP: Exiting HTS Tvheadend
hts@raspberry03:~$ exit
logout
- now as root, I start tvheadend via initscript
root@raspberry03:/home/hts/.hts# /etc/init.d/tvheadend start
[....] Starting Tvheadend: tvheadendINFO . ok
- here is the process running
root@raspberry03:/home/hts/.hts# ps -ef
UID PID PPID C STIME TTY TIME CMD
…..
hts 3186 1 4 20:17 ? 00:00:01 /usr/bin/tvheadend -f -u hts -g video -c /home/hts/.hts/tvheadend/
root 3222 3022 0 20:17 pts/0 00:00:00 ps -ef
root@raspberry03:/home/hts/.hts# tail /var/log/daemon.log
Sep 5 20:17:18 raspberry03 tvheadend3186: epggrab: module /usr/bin/tv_grab_it created
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: loaded v2
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: channels 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: brands 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: seasons 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: episodes 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: broadcasts 0
Sep 5 20:17:18 raspberry03 tvheadend3186: dvr: Creating new configuration ''
Sep 5 20:17:18 raspberry03 tvheadend3186: dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/home/hts". This can be changed from the web user interface.
Sep 5 20:17:18 raspberry03 tvheadend3186: START: HTS Tvheadend version 3.4~wheezy started, running as PID:3186 UID:108 GID:44, settings located in '/home/hts/.hts/tvheadend/'
root@raspberry03:/home/hts/.hts# tail -f /var/log/daemon.log
Sep 5 20:17:18 raspberry03 tvheadend3186: epggrab: module /usr/bin/tv_grab_it created
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: loaded v2
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: channels 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: brands 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: seasons 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: episodes 0
Sep 5 20:17:18 raspberry03 tvheadend3186: epgdb: broadcasts 0
Sep 5 20:17:18 raspberry03 tvheadend3186: dvr: Creating new configuration ''
Sep 5 20:17:18 raspberry03 tvheadend3186: dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/home/hts". This can be changed from the web user interface.
Sep 5 20:17:18 raspberry03 tvheadend3186: START: HTS Tvheadend version 3.4~wheezy started, running as PID:3186 UID:108 GID:44, settings located in '/home/hts/.hts/tvheadend/'
- trying to access the web interface now gives me an endless number of "enter username/password" authentication request windows again, the web ui is not usable this way.
- the logfile shows:
Sep 5 20:18:45 raspberry03 tvheadend3186: HTTP: 192.168.2.100: /comet/poll -- 401
Sep 5 20:18:51 raspberry03 tvheadend3186: HTTP: 192.168.2.100: /comet/poll -- 401