martin-ger / esp_wifi_repeater

A full functional WiFi Repeater (correctly: a WiFi NAT Router)
MIT License
4.83k stars 909 forks source link

Permissions Issue with Python #504

Closed AlexShukhman closed 2 years ago

AlexShukhman commented 2 years ago

I noticed this permissions issue when running on a totally clean install of Manjaro:

SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

My setup was the standard Docker implementation on the clean Manjaro image. The issue happened in the container, but the issue was with permissions in Python to access the USB connection.

Edit: Setup

AlexShukhman commented 2 years ago

The solution I found, and correct me if I'm off base here please, was to chmod the USB file:

sudo chmod 666 /dev/ttyUSB0
AlexShukhman commented 2 years ago

This must be set up on the host computer, not the container as the permissions were user permissions in host computer that were being accessed by the docker run command