- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Mon, 22 May 2006 10:58:22 +0100
On 19/05/06 17:03, Torben Mikael Hansen wrote: > How do I set the udev permissions for comedi? > > Every time I reload the modules for comedi the permissions for /dev/comedi* > has been changed to 0660, however I'd like it to be 0666. How can I do that? > > I have tried to set the following rule in a new /etc/udev/rules.d/myfile.rules > DEVPATH=="/dev/comedi*", MODE="0666" > > and the reload the modules, but that didn't solve to problem. You can use: KERNEL=="comedi[0-9]", MODE="0666" KERNEL=="comedi1[0-5]", MODE="0666" Or if you're not so fussy about matching device names: KERNEL=="comedi[0-9]*", MODE="0666" For the safety conscious, it would be better to add a "comedi" group using the groupadd command, add allowed users to that group using the gpasswd command, and use MODE="0660" and GROUP="comedi" in the udev rules to create the comedi devices with suitable permissions: KERNEL=="comedi[0-9]", MODE="0660", GROUP="comedi" KERNEL=="comedi1[0-5]", MODE="0660", GROUP="comedi" -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2006-05-22Z08:58:22