I'm running Fedora.
$ ls -l /dev/ttyACM0
crw-rw----. 1 root dialout 166, 0 Jul 4 10:50 /dev/ttyACM0
I was not able to access /dev/tty/ACM0
(dynamic usb serial with an Arduino on the other end), even though I added myself to the dialout
group. I had to either chmod a+rw /dev/tty/ACM0
or sudo
my programming command (arduino
or avrdude
).
I've recently "solved" a permission problem by cargo culting. The script /usr/bin/arduino
, installed by my Fedora, includes a check and warning if the user is not a member of groups dialout
and lock
.
Adding myself to lock
made it work. Why? I'm trying to understand the implications of this hidden ownership, and whether it applies to all the other flavors of Linux I use, but lock
group is hard to google.
The command sudo find / -group lock
turns up only one result: /usr/sbin/lockdev
dialout
group? What about after adding yourself to thelock
group?