Ubuntu USB Permission Denied error

HI,

I have Ubuntu 18.04.1 LTS running and recently installed Arduino IDE, I foolwed the instructions here:

But still get the error below when I try to compile any sketch.

avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied

Any help please?

Billd

In terminal type ls -lah /dev/ttyUSB0

It will tell you the group it is part of.
Go to Users and Groups and add yourself to root and the other group it indicates.

crw-rw---- 1 root dialout 188, 0 Oct 14 15:36 /dev/ttyUSB0

HI, thnx for the info,

I have confirmed that I am in groups root and dialout.

I also confirmed that I can successfully rw files to USB stick using the same USB0 port. So it appears that I do have access to the dialout group.

But Arduino IDE still gets the Access Denied error - do I need to add the Ardiuno IDE app to the group as well? How would I do that?

Thnx for your help
billd

Post the output from the command as above and 'id'. You have to be just member of the dialout group and access should be rw - exactly as above. Or try 'sudo chmod a+rw /dev/ttyUSB0'.

1 Like

Hi,

Thnx, I got it working, removed and reinstalled the Arduino IDE (again - I did it twice before . . .)

Don,t know why it worked this time, but it did.

Thnx for all your suggestions, I'm new to Linux and have learnt a lot troubleshooting this issue.

cul
billd

A quick way to get all of this working if you can't get 'dialout' permissions to change, is to simply run the app as a super user.

$ sudo arduino

then enter your root password on prompt

Running as super user will give you access to both dialout and tty port permissions, without having to run chown or chmod.

The downside is that it saves your arduino program files in your root accounts home directory, so make sure to specify your file save paths when you back up your programs.

I couldn't get my OS to give me permissions for dialout, this fix worked for me.