Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hebe2k opened this issue Oct 31, 2017 · 1 comment

Comments

@hebe2k
Copy link
Collaborator

hebe2k commented Oct 31, 2017

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
Copy link
Collaborator

henfri commented Oct 31, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants