Ubuntu – How to make file permissions for ttyS0 stick after reboot

permissionsudev

Every time I restart the computer I have to sudo chmod a+rw /dev/ttyS0 to run any program that uses serial communication.

Best Answer

This has been answered before. What you need to do is add the user to the default group where that port is located, e. g.:

crw-rw---- 1 root dialout ... /dev/ttyS0

Group is dialout. Add user to that group:

sudo adduser $USER dialout

Reboot to test.