E
E
Ep1CoN2015-01-26 12:02:32
USB
Ep1CoN, 2015-01-26 12:02:32

How to automatically assign 777 rights to a USB device when it is connected?

I am using Ubuntu 14.04. The bottom line is that there is a USB device with a known VID PID. When it is connected, a file is created with the location /dev/bus/usb/001/006 (for example, since the last digits usually change). It is necessary that this file be given full rights for all users.
I'm using a program to interact with a USB device, but by default this file is writable only by root. It's tedious and unprofessional to write sudo chmod 777 every time you reconnect =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hiloader, 2015-01-26
@Ep1CoN

You need a custom udev rule

A
Armenian Radio, 2015-01-26
@gbg

The main question is why are you opening a hole? Why should an application running in user-mode have direct access to the device? That's what's really "unprofessional".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question