On 8/6/09, Joseph Mack NA3T <jmack@xxxxxxxx> wrote: > On Wed, 5 Aug 2009, Joseph Mack NA3T wrote: > >> On Wed, 5 Aug 2009, Jim Paris wrote: >> >>> The links in /dev/disk/by-path really should work for you >>> as-is. They uniquely identify the physical slot the disk >>> is plugged into. >> >> I didn't understand that. Let me try it out > > Well dang. This works. Thanks everyone. > > I now see what you're all talking about. I assumed that I > had to write a udev rule from the contents of > /dev/disk/by-path. I also thought the contents of this > directory was changing with each insertion, like the output > of "udevinfo -a -p $device", but I now see that it isn't. > > I'd like only the program of interest to be able to write to > disks on the external ports. Changing the GROUP and MODE of > these disks would do it. Is it possible to change the GROUP > of the ports on the external hubs (and not change the GROUP > of ports built into the computer)? > > Thanks Joe You should be able to write a rule which matches on SYMLINK. SYMLINK=="disk/by-path/X", GROUP=... where X is a shell wildcard pattern which matches the desired paths. Make sure it is run after SYMLINK is set in 60-persistent-storage.rules or whatever it is on your system. Regard Alan -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html