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).