You are not logged in.

#1 2012-03-05 22:13:27

Kalamaius
Member
Registered: 2011-07-10
Posts: 20

libusb problem

I've tried to use fingerprint on arch. I've installed the fingerprint-gui following wiki's guide. When i try to use them en error appear:

libusb couldn't open USB device /dev/bus/usb/006/002: Permission denied.
libusb requires write access to USB device nodes.
Any solution?

Last edited by Kalamaius (2012-03-05 22:31:45)

Offline

#2 2012-03-06 00:15:51

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: libusb problem

Just create a udev rule for such device.

Run

# udevadm info --attribute-walk -n /dev/bus/usb/006/002

Look in the first device (this is your fingerprint) for these lines: ATTR{idVendor} and ATTR{idProduct}

Then write a quick and dirty(*) udev rule for it (replace VVVV and PPPP with your numbers)

# echo 'ATTR{idVendor}=="VVVV", ATTR{idProduct}=="PPPP", TAG+="udev-acl" > /etc/udev/rules.d/69-fingerprint.rules

(*) I said dirty because TAG+="udev-acl" should not be used outside 70-udev-acl.rules, but it works, and there is nothing to do the same thing at this moment. In this way device node perms is managed via ConsoleKit.

Offline

#3 2012-03-06 13:45:05

Kalamaius
Member
Registered: 2011-07-10
Posts: 20

Re: libusb problem

djgera wrote:

Just create a udev rule for such device.

Run

# udevadm info --attribute-walk -n /dev/bus/usb/006/002

Look in the first device (this is your fingerprint) for these lines: ATTR{idVendor} and ATTR{idProduct}

Then write a quick and dirty(*) udev rule for it (replace VVVV and PPPP with your numbers)

# echo 'ATTR{idVendor}=="VVVV", ATTR{idProduct}=="PPPP", TAG+="udev-acl" > /etc/udev/rules.d/69-fingerprint.rules

(*) I said dirty because TAG+="udev-acl" should not be used outside 70-udev-acl.rules, but it works, and there is nothing to do the same thing at this moment. In this way device node perms is managed via ConsoleKit.

I don't understand what i've to replace with VVVV and PPPP

Offline

#4 2012-03-06 15:20:11

Kalamaius
Member
Registered: 2011-07-10
Posts: 20

Re: libusb problem

I've solved the problem. Now what I've to do to for login with fingerprint in place of normal password?

Offline

#5 2012-03-06 21:59:15

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: libusb problem

Nice.

Thats is another thing, I suggest to open another thread for it.

Offline

Board footer

Powered by FluxBB