0

Is it possible to authenticate user without asking him to provide username/password and using only "second factor", i.e USB drive or fingerprint device? The idea is that I just want to insert the device to PC and to authenticate to this Linux machine without touching the keyboard. The decision about the user who needs to be authenticated will be made according to the attached device.

How can I achieve this(if it is possible) in Linux using PAM? Is it possible to create such a PAM module which will accomplish this?

Thank you very much!

1 Answer 1

0

It can be done by pamusb-conf command.

Please refer tutorial here -

https://linuxconfig.org/linux-authentication-login-with-usb-device

https://subscription.packtpub.com/book/networking_and_servers/9781785286421/4/ch04lvl1sec36/login-authentication-using-a-usb-device-and-pam

2
  • Thank you for your reply, @sanjayparmar. I know that this can be done with pam_usb, however, there is an issue here. manpages.ubuntu.com/manpages/trusty/man1/pamusb-agent.1.html It is mentioned here that I must firstly authenticate using pam_usb, and only after that I can use the pam_usb agent. But can I accomplish this without the need for "first" authentication, straight after system start? Is it possible to create a module in such a way that it will wait for USB device attachment? In the case of pam_usb, this agent is a python script, but I don't want to use any external scripts.
    – MrMan
    Jan 16, 2020 at 13:06
  • have you tried above links with pam_usb ? Jan 22, 2020 at 8:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .