View Full Version : [ubuntu] Login using USB key
spartanx86
March 9th, 2009, 07:04 PM
I'm running Ubuntu 8.04.2, is there a method of logging into the OS using a USB drive?
Basically I want the USB drive to act as a key to login instead of a username and password.
cdenley
March 9th, 2009, 07:32 PM
sudo apt-get install libpam-usb
zcat /usr/share/doc/libpam-usb/QUICKSTART.gz|less
hacker07.gbh
March 13th, 2009, 02:04 AM
sudo apt-get install libpam-usb
zcat /usr/share/doc/libpam-usb/QUICKSTART.gz|less
what does that code do really
cdenley
March 13th, 2009, 01:35 PM
It installs the PAM module for USB authentication, then it displays a compressed text file installed from the package containing instructions for how to configure and use the module.
bodhi.zazen
March 13th, 2009, 05:13 PM
sudo apt-get install libpam-usb
zcat /usr/share/doc/libpam-usb/QUICKSTART.gz|less
Very interesting, thank you for that information.
SnappyU
March 15th, 2009, 10:57 AM
Great! Just what I was looking for ... :D
EDIT:
Everything is working fine ... but note the following.
Tested on Ubuntu 8.10
PAM Module *IMPORTANT*
According to the site above:
Locate the following line on /etc/pam.d/common-auth or /etc/pam.d/system-auth:
auth required pam_unix.so nullok_secure
And change it to look something like that:
auth sufficient pam_usb.so
auth required pam_unix.so nullok_secure
For Ubuntu 8.10, the above would cause strange behaviour, instead change it to the following:
auth sufficient pam_usb.so
auth [success=1 default=ignore] pam_unix.so nullok_secure
Betty1978
March 16th, 2009, 10:53 AM
I too wanted answer to this problem. Now I cleared of it. Thanks
Kobalt
March 16th, 2009, 05:56 PM
Great tip indeed, I did not know of a libpam-usb package.
I'll look into it tonight, thanks :)
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.