Using Debian "wheezy" I have been trying to set the group permission for /sys/class/gpio to dialout. This is to avoid having to run my programs that use the GPIO as root. I have been trying to set the permissions with udev rules with a notable lack of success, I can identify the device:
- Code: Select all
$ udevadm info --path=/sys/class/gpio --attribute-walk
looking at device '/class/gpio':
KERNEL=="gpio"
SUBSYSTEM=="subsystem"
DRIVER==""
so, after reading the manual and various web pages, I setup a rule as /etc/udev/rules.d/91-gpio.rules with this:
- Code: Select all
KERNEL=="gpio*", MODE:="0660", GROUP:="dialout"
but the permissions on the directory remain as root:root. I have tried a variety of rules but with no joy.
Any ideas? Am I doing this the wrong way?
Thanks
Karl