problem with accessing /dev/ttyUSB0 when running the container as user and not as root
Opened this issue · 1 comments
hebe2k commented
could not open port /dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
This is how it looks like inside the container when running as user smarthome
.
crw-rw---- 1 root 18 188, 0 Okt 26 22:37 ttyUSB0
Even adding the user 'smarthome' to the group dialout
doesn't fix the issue.
henfri commented
Hello,
did you try whether the user has access to ttyUSB0 on the host?
(e.g. become the user that is running the container and do a cat /dev/ttyUSB0)
More here:
https://askubuntu.com/questions/133235/how-do-i-allow-non-root-access-to-ttyusb0-on-12-04
Greetings,
Hendrik