[mythtv-users] Permissions and HD3000 QAM_256 setup
Mark Johannessen
mfjlaw at gmail.com
Mon Mar 27 19:02:29 UTC 2006
This is probably a basic persmissions question. I am now working on
getting a channel lineup for an HD3000 card. Per the
Adding_QAM_Channels_For_HDTV_Tuner_Cards wiki:
$ ./atscscan atsc/us-Cable-Standard-center-frequencies-QAM256
scanning atsc/us-Cable-Standard-center-frequencies-QAM256
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2232: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 13
Permission denied
However, when I run atscscan as root, I can get a channel listing that
I then put in a file /home/mythtv/.azap/channels.conf such as ....
# ./atscscan atsc/us-Cable-Standard-center-frequencies-QAM256
....
[0007]:573000000:QAM_256:1031:1639:7
[0006]:573000000:QAM_256:1026:1027:6
[0005]:573000000:QAM_256:1021:1022:5
[0001]:573000000:QAM_256:1001:1002:1
....
Now I try to get a channel lock by ...
$ /usr/local/bin/azap -r [0007]
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
ERROR: failed opening '/dev/dvb/adapter0/frontend0' (Permission denied)
I try this as root:
# /usr/local/bin/azap -r [0007]
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
ERROR: could not open file '/root/.azap/channels.conf' (No such file
or directory)
No such file or directory
I then checked permissions:
$ ls -la -R /dev/dvb
/dev/dvb:
total 0
?--------- ? ? ? ? ? .
?--------- ? ? ? ? ? ..
?--------- ? ? ? ? ? adapter0
ls: /dev/dvb/adapter0: Permission denied
and ...
# ls -la -R /dev/dvb
/dev/dvb:
total 0
drw-rw-rw- 3 root mythtv 60 Mar 27 10:55 .
drwxr-xr-x 13 root root 4320 Mar 27 10:55 ..
drw-rw-rw- 2 root mythtv 120 Mar 27 10:55 adapter0
/dev/dvb/adapter0:
total 0
drw-rw-rw- 2 root mythtv 120 Mar 27 10:55 .
drw-rw-rw- 3 root mythtv 60 Mar 27 10:55 ..
crw-rw-rw- 1 root mythtv 212, 4 Mar 27 10:55 demux0
crw-rw-rw- 1 root mythtv 212, 5 Mar 27 10:55 dvr0
crw-rw-rw- 1 root mythtv 212, 3 Mar 27 10:55 frontend0
crw------- 1 root root 212, 7 Mar 27 10:55 net0
In order to get the above permissions to stick on reboot, I added the
following to /etc/rc.d/rc.local:
chmod -R 666 /dev/dvb
chgrp -R mythtv /dev/dvb
The basic question is, should azap, atscscan, etc be run as root or
should I be working as the mythtv user?
Mark
More information about the mythtv-users
mailing list