[CentOS] help with udev rules needed

Wed Jan 21 22:31:27 UTC 2009
rray_1 at comcast.net <rray_1 at comcast.net>

On Wed, 21 Jan 2009, Farkas Levente wrote:

> rray_1 at comcast.net wrote:
>> On Wed, 21 Jan 2009, Farkas Levente wrote:
>>
>>> rray_1 at comcast.net wrote:
>>>> I am migrating from Fedora 8 to CentOS 5.2
>>>> I have usb dvd
>>>>
>>>> On F8 I have /etc/udev/rules/00-my-custom.rules
>>>> BUS=="scsi", SYSFS{vendor}=="TSSTcorp", SYSFS{model}=="CDDVDW SH-S203N
>>>> ",SYMLINK="dvd",OWNER="rray"
>>>> When I plug in dvd I get
>>>> $ ll /dev/scd1
>>>> lrwxrwxrwx 1 root root 3 Aug 25 08:17 /dev/scd1 -> sr1
>>>>   ll /dev/sr1
>>>> brw-r----- 1 rray disk 11, 1 2009-01-21 12:29 /dev/sr1
>>>> Everything is ok
>>>>
>>>> On C5.2 I have /etc/udev/rules/00-my-custom.rules
>>>> BUS=="scsi", SYSFS{vendor}=="TSSTcorp", SYSFS{model}=="CDDVDW SH-S203N
>>>> ",SYMLINK="dvd",OWNER="rray"
>>>> When I plug in dvd I get
>>>> # ll /dev/scd0
>>>> brw-rw---- 1 root disk 11, 0 Jan 21 12:30 /dev/scd0
>>>> I have also tried MODE="0666" and it also has no affect
>>>>
>>>> I have checked "udevinfo -a -p $(udevinfo -q path -n /dev/scd0/1)" on both
>>>> machines and they are the same
>>> what's the problem?
>>> the above rule has nothing to do with sdcX it's just create dvd symlink,
>>> the device itself created by system udev rules.
>>>
>>>
>>
>> On C5.2 the device has root:disk ownership and 660 perms
>> The OWNER="rray" part of the udev rule appears to be ignored
>> How can I change the owner to "rray" or perms to "0666"
>
> _which_ device? scd1 or dvd!!!?
> your rule is about dvd it has nothing to with scd1!
>
>

I believe I am very confused
Please ignore everything above
If I wanted to write a udev rules such that when I plugged in my usb dvd 
drive, the owner of the device file is "rray" what might that rule look 
like given udevinfo tells me these characteristics describe my dvd drive
BUS=="scsi", SYSFS{vendor}=="TSSTcorp", SYSFS{model}=="CDDVDW SH-S203N"

Thanks
Richard Ray