I'm currently running KNC on Debian based workstations.
In order for non root user to run offload code I have to change permission on
my udev rule looks like this (/etc/udev/rules.d/104-mic.rules)
Permission are properly set for /dev/mic0 for example but not for /dev/mic/ctrl & /dec/mic/scif
In order to properly set permission for these I must add tgis to my /etc/rc.local
chmod a+rw /dev/mic/ctrl /dev/mic/scif
What would be a correct udev rule to properly set permission on /dev/mic/ctrl & /dec/mic/scif ?
I am using the following udev rules on Ubuntu 14.04:
SUBSYSTEM=="mic", KERNEL=="scif", ACTION=="add", MODE="0666", RUN+="/bin/chmod a+rw /dev/mic/%k" SUBSYSTEM=="mic", KERNEL=="ctrl", ACTION=="add", MODE="0666", RUN+="/bin/chmod a+rw /dev/mic/%k"
Using RUN seems like some kind of hack to achieve this, but I don't know a better way.