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

Arduino/Teensy software/code questions and discussion
Post Reply
User avatar
obsidianspider
Posts: 98
Joined: Tue Sep 06, 2016 11:01 am
Has thanked: 134 times
Been thanked: 35 times

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

Post by obsidianspider » Thu Jun 07, 2018 2:13 pm

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.
Last edited by obsidianspider on Thu Jun 07, 2018 2:48 pm, edited 2 times in total.

User avatar
obsidianspider
Posts: 98
Joined: Tue Sep 06, 2016 11:01 am
Has thanked: 134 times
Been thanked: 35 times

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

Post by obsidianspider » Thu Jun 07, 2018 2:32 pm

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.

User avatar
obsidianspider
Posts: 98
Joined: Tue Sep 06, 2016 11:01 am
Has thanked: 134 times
Been thanked: 35 times

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

Post by obsidianspider » Thu Jun 07, 2018 2:47 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest