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:Jump to 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...3 Replies
bump
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.Legend, that did it. Indeed Dialout was disabled. Thanks a lot! 😄