Udev script not working

Matthias Kirschner mk at fsfe.org
Thu Jun 29 09:34:00 CEST 2006

Hi all,

I tested the smartcard howto on Debian testing with udev. Until now I
used Debian stable with hotplug and everything worked fine.

I did everything like described in
http://www.gnupg.org/(en)/howtos/card-howto/en/ch02s03.html (under 2.3.1
with udev)

    user at machine:~$ gpg -v --card-status
    gpg: selecting openpgp failed: ec=6.108
    gpg: OpenPGP Karte ist nicht vorhanden: Allgemeiner Fehler
(English: OpenPGP card not available: general error)

The output of udevmonitor (when I unplug and plug in the card):

UEVENT[1151564470.555428] remove@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UEVENT[1151564470.555504] remove@/class/usb_device/usbdev2.3
UEVENT[1151564470.555518] remove@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UDEV  [1151564470.557124] remove@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UDEV  [1151564470.559383] remove@/class/usb_device/usbdev2.3
UDEV  [1151564470.561257] remove@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UEVENT[1151564475.146210] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UEVENT[1151564475.153441] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UEVENT[1151564475.153504] add@/class/usb_device/usbdev2.4
UDEV  [1151564475.154020] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UDEV  [1151564475.176210] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UDEV  [1151564475.226117] add@/class/usb_device/usbdev2.4

When I do 

    machine:/dev/bus/usb/002# chown root:scard 004

everything is working for the user. 

Is someone familar with udev and has a clue what's wrong with the

Thank you very much,

Join the Fellowship and protect your freedom!      (http://www.fsfe.org)

More information about the Gnupg-devel mailing list