Unable to open Serial Port /dev/ttyACM0

Hiya folks! I've recently come into an issue when trying to work with Serial over USB. I have added my user to 'nfsnobody' as well as the 'dialout' groups but no joy, keep getting: Unable to connect to /dev/ttyACM0: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0' I think for some reason the system is making it so only root can access the port. Anyone has any suggestions? Thanks!
Solution:
First check to see if the dialout group is actual listed in your group file by running cat /etc/group. If it's not listed creating a group works slightly differently in atomic distros, you'll need to run grep -E '^dialout:' /usr/lib/group | sudo tee -a /etc/group to make the dialout group available. Then run sudo usermod -a -G dialout $USER to add your user to the dialout group as usual. Remember to reboot for the change to take effect. However, if that's not the actual issue, then no idea...
Jump to solution
3 Replies
Pidge
PidgeOP•2w ago
bump
Solution
wolfyreload
wolfyreload•2w ago
First check to see if the dialout group is actual listed in your group file by running cat /etc/group. If it's not listed creating a group works slightly differently in atomic distros, you'll need to run grep -E '^dialout:' /usr/lib/group | sudo tee -a /etc/group to make the dialout group available. Then run sudo usermod -a -G dialout $USER to add your user to the dialout group as usual. Remember to reboot for the change to take effect. However, if that's not the actual issue, then no idea.
Pidge
PidgeOP•2w ago
Legend, that did it. Indeed Dialout was disabled. Thanks a lot! 😄

Did you find this page helpful?