Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nonyme__a
Beginner
53 Views

Debian like system udev rules for /etc/mic/ctrl and /etc/mic/scif

Hi,

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 

/dev/mic[0-9]

/dev/mic/ctrl

/dec/mic/scif

my udev rule looks like this (/etc/udev/rules.d/104-mic.rules)

SUBSYSTEM=="mic", MODE="0666"

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 ?

 

0 Kudos
1 Reply
Rainer_M_
Beginner
53 Views

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.

Reply