In 2.6 kernel series /proc/scsi/usb-storage structure has changed a little bit, so pam_usb.so cannot find your usb device to look for serial. Try "<this_patch.sh> test" to find out if your system has this problem. Due to additional complications with usb pen serial number on my system I changed the code so it queries for Vendor ID. If "<this_patch.sh> test" tells you your usb pen serial number you can try: replace "Vendor" "Serial Number" -- <this_patch.sh> ( case sensitive) to use Serial Number (this case is untested) Reproducible: Always Steps to Reproduce: 1.use pam_usb whith check_device=1 2. 3. Actual Results: Login refused. Sometimes: login crashed
Created attachment 38158 [details, diff] testing and patching script
Patch attached