Permission denied on /dev/ttyACM0

anilkunchalaece:
try the following command

sudo chmod a+rw /dev/ttyACM0

--

Check this link for more info https://www.youtube.com/watch?v=Z2hlBbZu3CI

Working on Ubuntu 18.04.1 LTS on an arduino UNO r3 via USB, and this fixed the issue for me.

Thanks Anil!

Here's what I think the fix is doing: chmod is a utility that modifies privileges. What this command is doing is changing privileges for /dev/ttyACM0, the port we're trying to write to the arduino with. We're running chmod a+rw. The "a" signifies that we're in a-mode, which modifies all users, and the "+rw" means we "+" (add) "rw" (read and write permissions).

1 Like