Yes it is a little of a dark art. A lot like AI.
But adding the user to the same group seems to work fine on Ubuntu and it’s derivatives. As in these systems the device is writable for the group and the group gets set to Dialout.
As far as the security goes any process run by the user has write access obviously. However opening to all means that any process run on the system has write access. It punches a rather big hole.
Having run linux servers a long time ago I am very cautious of this sort of thing for a single user system the risque is probably very minimal though.
stat -c ‘%a’ /dev/ttyACM?
so if this returns 660 the idea will work
stat -c ‘%G’ /dev/ttyACM?
stat -c '%G' /dev/ttyACM0
sudo usermod -a -G $GRP $USER
should then work
groups $USER | grep -o
stat -c "%G" /dev/ttyACM0
-> dialout if the user is in the group
this would need to loop through each ttyACM? if there are more than one device though.
However it completely bypasses the udev issue and uses the existing setup. Yes I played with UDEV and bluetooth a long time ago and it’s a nightmare. My fingers were severely burnt.
It was not a criticism just a heads up.
I am very grateful for your work and really enjoy being able to work with AI so simply.
Thank you so much for this platform/site.
NB. the backticks required are not shown here as the MARKUP removes them I could not find a way around that.