smarthomeNG / docker

Dockerfile for SmartHomeNG
1 stars 7 forks source link

problem with accessing /dev/ttyUSB0 when running the container as user and not as root #3

Open hebe2k opened 6 years ago

hebe2k commented 6 years ago

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 6 years ago

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