How to Configure Permission Denied Port
Can’t open device Permission denied – When you upload the code to the Arduino board using Linux and get an error appears like this:
avrdude: ser_open(): can’t open device “/dev/ttyACM0”: Permission denied
You can fix it with this command in terminal:
Modify user accounts.
sudo usermod -a -G dialout <username>
For example, my computer username is neon, then write:
sudo usermod -a -G dialout neon
Give permission
Give permission for ports to be read and written using the terminal with two commands:
sudo chmod a+rw /dev/tty<ACM or USB>
For example, the detected port name is ttyUSB0, then the command is:
sudo chmod a+rw /dev/ttyUSB0
Done.
If you want to see the video arduino ide instalation in ubuntu, you can see this:
If you think this article is useful, please share it using the share button below.