Give serial port access to normal user
When we try to access a serial port device(i.e /dev/ttyUSB0) as a normal user, a Permission denied error will occur. Let’s take a look at permissions for those serial port devices:
1 | ll /dev/ttyUSB0 |
As we can see, except root user, dialout group also has permissions to those serial port tty devices. Hence, to allow normal user access serial port devices, adding normal user to dialout group will suffice:
1 | sudo usermod -aG dialout $USER |