Skip to content

Instantly share code, notes, and snippets.

@windsting
Created September 24, 2022 18:44
Show Gist options
  • Save windsting/8557b7d564febfaf12304861c3fbb00d to your computer and use it in GitHub Desktop.
Save windsting/8557b7d564febfaf12304861c3fbb00d to your computer and use it in GitHub Desktop.
Cannot open /dev/ttyUSB0: Permission denied

While accessing serial port on Raspberry Pi 4 with Manjaro(ARM Mate) installed like:

stcgal -P auto

got an error:

Serial port error: [Errno 13] could not open port /dev/tty1: [Errno 13] Permission denied: '/dev/ttyUSB0'

checking group for ttyUSB0:

$ ls -l /dev/ttyUSB0 
crw-rw---- 1 root uucp 188, 0 Sep 25 01:33 /dev/ttyUSB0

use the following command to add current user to group uucp:

sudo usermod -a -G uucp $USER

then reboot(logout and login also work).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment