1. Get USB Device Information
Run this command to find the vendor ID and product ID of your USB device:
bash
lsusb # Example output: a7a9:2829
2. Create a udev Rule File
Open a new udev rules file to set permissions:
bash
sudo nano /etc/udev/rules.d/99-usb.rules
3. Add the Rule
Paste the following line into the file, replacing the IDs with your own:
bash
SUBSYSTEM=="usb", ATTR{idVendor}=="a7a9", ATTR{idProduct}=="2829", MODE="0666"
This allows all users to access the device.
4. Reload the udev Rules
Apply the changes by reloading udev:
bash
sudo udevadm control --reload sudo udevadm trigger
5. Reboot the System
Restart your Raspberry Pi to make sure the rule takes effect:
bash
sudo reboot