aluzzardi / pam_usb

Hardware authentication for Linux using ordinary USB Flash Drives.
GNU General Public License v2.0
152 stars 83 forks source link

Pam usb installed succusfully from source but not run properly #17

Closed mcolak closed 11 years ago

mcolak commented 11 years ago

I change Makefile to debug mode

I install project make make install then

add pam module to /etc/pam.d/common-auth

auth sufficient pam_usb.so

pamusb-conf add device and user reboot the os. when I want to login it failed.

pamusb-check --debug deli

* Authentication request for user "deli" (pamusb-check)
[src/local.c:037] Checking whether the caller is local or not...
[src/local.c:046] Authentication request from tty pts/2
[src/local.c:065] Caller is local (good)
[src/device.c:057] Connecting to HAL...
[src/device.c:034] Searching for "king" in the hardware database...
* Device "king" is connected (good).
* Performing one time pad verification...
[src/volume.c:102] Searching for volume with uuid B7EF-1808
[src/volume.c:130] Found volume B7EF-1808
[src/volume.c:087] Device /org/freedesktop/UDisks/devices/sdb1 is mounted on /media/PARDUS
[src/volume.c:134] Volume is already mounted.
[src/pad.c:253] Loading device pad...
��rc/pad�3|�2����[�f���P��o,pYP�3��х���7'�����X����k�L�[src/pad.c:256] Loading system pad...
��rc/pad�3|�2����[�f���P��o,pYP�3��х���7'�����X����k�L�[src/pad.c:263] Pad match.
[src/pad.c:150] Checking whether pads are expired or not...
[src/pad.c:180] Pads were generated 308 seconds ago, not updating.
* Access grantedpam-check.

What steps I do wrong? In installition part is there any rule or something. When I install directly from repository it works fine.

thanks for your reply

mcolak commented 11 years ago

I install via apt-get then I locate the pam_usb.so I build my own pam_usb.so using from source then change the original file for my own file then everythings work fine. Are there any other configuration needed?