Problem:
Cannot open /dev/ttyS0: Permission denied
Answer:
$ ls -la /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Sep 29 17:59 /dev/ttyUSB0
$ groups $USER
andreas : andreas adm cdrom sudo dip plugdev lpadmin sambashare wireshark
$ sudo gpasswd --add $USER dialout
Adding user andreas to group dialout
$ groups $USER
andreas : andreas adm dialout cdrom sudo dip plugdev lpadmin sambashare wireshark
Cannot open /dev/ttyS0: Permission denied
Answer:
$ ls -la /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 Sep 29 17:59 /dev/ttyUSB0 $ groups $USER andreas : andreas adm cdrom sudo dip plugdev lpadmin sambashare wireshark $ sudo gpasswd --add $USER dialout Adding user andreas to group dialout $ groups $USER andreas : andreas adm dialout cdrom sudo dip plugdev lpadmin sambashare wireshark
Source: Serial port terminal > Cannot open /dev/ttyS0: Permission denied