aluzzardi / pam_usb

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

Authentication failed for device. Keeping user locked down. #40

Open sgon00 opened 6 years ago

sgon00 commented 6 years ago

OS: Latest Arch Linux

If I unplug the USB, the gnome-screensaver can lock the screen. If I plug the USB again, it failed to unlock:

pamusb-agent[1395]: Device "mydevice" has been removed, locking down user "user"...
pamusb-agent[1395]: Running "gnome-screensaver-command --lock"
pamusb-agent[1395]: Locked.
pamusb-agent[1395]: Device "mydevice" has been inserted. Performing verification...
pamusb-agent[1395]: Executing "/usr/bin/pamusb-check --quiet --config=/etc/pamusb.conf --service=pamusb-agent user"
pamusb-agent[1395]: Authentication failed for device mydevice. Keeping user "user" locked down.

What is the problem? How can I workaround this issue? Thanks a lot. I tried several times and reboot the machine. nothing helps.

sgon00 commented 6 years ago

I fixed the problem by executing

sudo chmod u+s /usr/bin/pamusb-check

I figured it out by myself. I can not find any useful help online. Hopefully, this will help someone one day.

promasu commented 6 years ago

Could you then please close this issue? It isn't really open anymore.

teynav commented 4 years ago

@sgon00 Thanks man, it really did help me