Op donderdag 8 december 2016 12:55:34 CET schreef Dave Howorth:
I'm trying to run an app in chromium to talk to an external device connected by serial over USB, as /dev/ttyUSB. And I'm failing.
I'm handicapped by knowing nothing about chromium and not much about ttys and groups in the modern world.
The app says it is trying to contact /dev/ttyUSB0 and then it says it is 'Not Found'.
I'm wondering if there is a permissions, or other security, issue?
Does chromium prevent apps trying to talk to external devices by default? (and if not why not?!)
If I look at the device: $ ls -l /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 Dec 8 11:37 /dev/ttyUSB0
it seems like nothing should be able to talk to it unless they are either root or a member of the dialout group. I don't want to give root privileges to this app. I'm running chromium as me, and the only group I am a member of is users. If I look at the list of groups in YaST, there is no dialout group listed.
Is there a bug in YaST or am I missing some feature to edit group membership?
I added my self to the dialout group using gpasswd. Some online stuff indicates I need to logout and then back in before it will take effect. That seems a fairly draconian thing to have to doo just to use a new group membership. Is there another way?
I suppose I could change the group that the tty belongs to, but that seems like too big a bodge.
TIA, Dave ' Are you sure, Dave? grep dial /etc/group
-- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org