Greg Kotner wrote:
> Is it OK to run tvheadend as root ?
You shouldn't need to. If you're not able to access devices, it will simply be a matter of fixing up permissions.
From /etc/default/tvheadend
# TVH_USER
# if set to "" will run as root
TVH_USER="pi"
# TVH_GROUP
# if set to "" will run as root
TVH_GROUP="video"
The above defines the user & group the tvheadend process runs with.
l /dev/dvb/
drwxr-xr-x 2 root root 120 Apr 2 14:17 adapter0/
drwxr-xr-x 2 root root 120 Apr 2 14:17 adapter1/
drwxr-xr-x 2 root root 120 Apr 2 14:17 adapter2/
l /dev/dvb/adapter0
total 0
drwxr-xr-x 2 root root 120 Apr 2 14:17 ./
drwxr-xr-x 5 root root 100 Apr 2 14:17 ../
crw-rw---- 1 root video 212, 4 Apr 2 14:17 demux0
crw-rw---- 1 root video 212, 5 Apr 2 14:17 dvr0
crw-rw---- 1 root video 212, 3 Apr 2 14:17 frontend0
crw-rw---- 1 root video 212, 7 Apr 2 14:17 net0
The DVB adapter internals have rw access for owner [root] and group [video], as tvheadend is running as group video it has rw access.
The simplest approach is to verify what group your USB device is installed with & ensure tvheadend is set to that group.