[mythtv-users] /dev/video0 permissions

Yan Seiner yan at seiner.com
Fri Jan 23 04:54:30 UTC 2009


Yan Seiner wrote:
> Gabe Rubin wrote:
>>
>> You can probably do this with udev.  This is the process for making
>> sure the permissions work properly for firewire, and can probably be
>> adapted for /dev/video (although I am not sure the specifics):
>> http://www.mythtv.org/wiki/FireWire#Method_2:_modify_udev_rules
>>
>>   
> Here's my udev rules for the myth DVD player:
>
> selene:/etc/udev# grep -r myth *
> rules.d/71-local-cd.rules:ENV{ID_CDROM}=="?*", 
> ENV{ID_SERIAL}=="SONY_DVD-ROM_DDU1615_############-0:0", 
> SYMLINK+="dvdplayer/myth", ENV{GENERATED}="1"
> rules.d/91-permissions.rules:        OWNER="mythtv", GROUP="mythtv", 
> MODE="0660"
OK, let's try that again, this time in context:

selene:/etc/udev# grep -r -C2 myth *
rules.d/71-local-cd.rules-# DVD-ROM_DDU1615 
(pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0)
rules.d/71-local-cd.rules:ENV{ID_CDROM}=="?*", 
ENV{ID_SERIAL}=="SONY_DVD-ROM_DDU1615_############-0:0", 
SYMLINK+="dvdplayer/myth", ENV{GENERATED}="1"
--
rules.d/91-permissions.rules-SUBSYSTEMS=="usb", KERNEL=="sr*", \
rules.d/91-permissions.rules-        ATTRS{manufacturer}=="Cypress 
Semiconductor", ATTRS{product}=="USB2.0 Storage Device", \
rules.d/91-permissions.rules:        OWNER="mythtv", GROUP="mythtv", 
MODE="0660"

--Yan


More information about the mythtv-users mailing list