Wednesday, February 06, 2013

linux: set device file permission on boot

to set a device's (acm0) file permission on boot

1. write  51-acm0.rules to /etc/udev/rules.d containing:

KERNEL=="ttyACM0", MODE="0777"

2. restart linux box to test

background: i have a usb device that is accessed by an application run by a standard user. the usb device appears as ttyACM0 and has to be of 777 file permission mode for the application to access it. the problem is whenever i boot the linux box the device appears with 555 file permission mode.

...but not anymore ;D

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...