I've been following this post, I have installed libpam-usb and pamusb-tools, added the following line to the end of my /etc/pam.d/common-auth:
Setup the device nickname and username, and even added the following to my /etc/pamusb.conf in the correct place:Code:auth sufficient pam_usb.so
Here is what happens:Code:<agent event="lock">xscreensaver-command --lock</agent> <agent event="unlock">xscreensaver-command --deactivate</agent>
I unplug my USB stick, and xscreensaver locks the screen. Okay, this is what I wanted it to do. But when I reinsert the stick, nothing happens. If I try logging in from a TTY with the stick inserted, it still requires me to enter a password. (I am trying to set this up as a passwordless setup, and basically use my stick as my password. (Please let me take my own risks... I am just testing the setup)).
So here is what I would like to be preforming, but it is not, and I am stumped on how to fix it....
I want the screensaver to lock when I unplug the drive, and I want the screensaver to unlock when I reinsert the drive. (This is my primary goal). I would also like to be able to use the drive as my password for authentication with GDM, sudo, TTY logins, etc.
Is there something I have forgotten to do? The first part works fine (of locking the screen when the drive is removed), but I can't get the authentication process to work without a password, or even automatically log me in.
Best Regards,
Dr Small
Bookmarks