From 8800da6a3816ced2c2cfde12c9864046694af3a9 Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 3 Mar 2013 14:21:24 +1100 Subject: [PATCH] USB linux rules for libusb to give privs to non-root users --- FPGA-README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/FPGA-README b/FPGA-README index 5a1e6a34..051e695e 100644 --- a/FPGA-README +++ b/FPGA-README @@ -26,6 +26,24 @@ with cgminer (not the libusbx version) - +When mining on linux, but not using 'sudo' and not logged into 'root' you +may get a USB priviledge error (-3), so you may also need to do the following: + +Create /etc/udev/rules.d/01-cgminer.rules +With: + ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev" + ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev" + +And also: + sudo usermod -G plugdev -a `whoami` + +Then reboot ... + +If your linux distro doesn't have the 'plugdev' group, you can create it like: + sudo groupadd plugdev + +- + There is a hidden option in cgminer to dump out a lot of information about USB that will help the developers to assist you if you are having problems: