Image From Pixabay |
How to Fix Arch Linux Permission Denied Arduino IDE STM32 Microcontroller
This is a problem that I got from my project of programming STM32 using
Arduino IDE on Arch Linux.
All the equipment I have installed, starting from the STM32 Core library
board, Libusb library, ST Link, accepts when I check in the terminal using
the "lsusb" command. I am confused as to what causes this.
Permission Denied?
I just remembered when using ubuntu. You can read install Arduino Ubuntu
Permission denied on
this page.
I tried it on Arch Linux, but there is no dialout in arch linux. Finally I
got it on Arch Linux we used "uucp" and it worked.
libusb couldn't open USB device /dev/bus/usb/001/006: Permission denied.
libusb requires write access to USB device nodes.
How to fix Permission Denied Arch Linux?
Are as follows:
There are two steps you must take. Open your Terminal.
1. Modify user accounts.
sudo usermod -a -G uucp <username>
For example your computer username is Asus, then you write:
sudo usermod -a -G uucp asus
2. Give the port permission to read and write using the terminal with two
commands:
sudo chmod a + rw/dev/bus/usb/..../....
For example, the detected port name is 001/006, then the command is:
sudo chmod a + rw /dev/bus/usb/001/006
3. Done.