[mythtv-users] /dev/video0 permissions

Ron Garrison ron.garrison at gmail.com
Thu Jan 22 21:24:39 UTC 2009


After years of running mythtv on Fedora Core 3 and multiple kernel
builds to accomodate new hardware, I have decided to do a clean
install of Fedora Core 10.

I was surprised to see that ivtv was included and it appears as though
I don't have much to do there.  Now here's the problem

I have 1 pvr-250 (single tuner) and 1-pvr-500 (dual tuner).  dmesg
looks normal.  the pvr-250 is assigned to /dev/video0 and the pvr-500
to /dev/video1 and /dev/video2.

The problem is with permissions on /dev/video0.  They look as follows:

crw-rw----    1 root   root    81,   0 2009-01-22 10:41 video0
crw-rw----+  1 root   root    81,   1 2009-01-22 10:41 video1
crw-rw----+  1 root   root    81,   2 2009-01-22 10:41 video2

When executing getfacl to see what the extra permission settings are I
get:  (note the user:mythtv:rw- is missing from video0)

[mythtv at htpc ~]$ getfacl /dev/video0
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: root
user::rw-
group::rw-
other::---


[mythtv at htpc ~]$ getfacl /dev/video1
getfacl: Removing leading '/' from absolute path names
# file: dev/video1
# owner: root
# group: root
user::rw-
user:mythtv:rw-
group::rw-
mask::rw-
other::---


Executing  "setfacl -m user:mythtv:rw- /dev/video0"  fixes the problem
temporarily, but upon reboot its back to the original state.

Any suggestions on how to fix this so mythtv has access permissions
upon boot?  Any idea as to why the video0 permissions are different
from the video1 and video2 permissions?  TIA

Ron


More information about the mythtv-users mailing list