Page 1 of 1

[SOLVED] arduino [Errno 13] Permission denied: '/dev/ttyUSB0'

Posted: Thu Jun 07, 2018 2:13 pm
by obsidianspider
This is meant to help anyone else who may have run into the error that I did.

I'm just learning Arduino/ESP32 stuff and my development laptop is a Chromebook running GalliumOS. I ran into an issue where I would try to upload a sketch and in the many lines of errors I would get:

Code: Select all

arduino [Errno 13] Permission denied: '/dev/ttyUSB0'
After some googling around I came across this post on the Arduino forum that pointed me in the right direction.

Ultimately, what fixed the problem was running

Code: Select all

sudo chmod a+rw /dev/ttyUSB0
Then I was able to upload my sketch.

I realize it's a total n00b issue, but it had me scratching my head for a while and hopefully it will help someone else who is new to this Arduino stuff.

Re: [SOLVED] arduino [Errno 13] Permission denied: '/dev/ttyUSB0'

Posted: Thu Jun 07, 2018 2:32 pm
by obsidianspider
For whatever reason, each time I unplug and replug my device I have to re-run that command. Any suggestions as to why that is or how to fix it so I don't have to run that every time? It's kind of annoying.

Re: [SOLVED] arduino [Errno 13] Permission denied: '/dev/ttyUSB0'

Posted: Thu Jun 07, 2018 2:47 pm
by obsidianspider
I rebooted and tried again, just for the heck of it, and now things are working without manually running the chmod command. Maybe it's because I'd just installed the ESP32 piece from Github and it hadn't fully "taken"

tl;dr Reboot your computer and you should be OK