Give write access to USB and Serial devices automatically

Posted by Saeid87 on Ask Ubuntu See other posts from Ask Ubuntu or by Saeid87
Published on 2012-11-20T16:36:53Z Indexed on 2012/11/20 17:20 UTC
Read the original article Hit count: 299

Filed under:
|

I am working with some USB and Serial micro-controllers. Everytime I plug a device I have to do the following command to give it write access, and also my password:

sudo chmod 666 /dev/ttyUSB0

Can I set my Ubuntu to automatically give write access to pluged in devices?

If not, how can I make a batch file that I can easily give the access to port I want for example if I run the following command it does the job:

giveaccess -usb0

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about batch