Serial Port Access Control

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

Source: Serial port terminal > Cannot open /dev/ttyS0: Permission denied

Leave a Reply

Your email address will not be published. Required fields are marked *