PAM authentication via a USB pen drive

Translation of the original in Catalan. Read it in: CatalàCastellano

I'll tell you about the last silly thing I've done with linux, call it silly, call it a super useful thing that everybody knows can be done and nobody ever ends up setting up. Well then, as you know the authentication modules used in linux are the PAM: Pluggable Authentication Modules for Linux.

The point is to take advantage of the USB pen-drive we have, we make a small EXT2 partition on it or else, we keep a public key inside the FAT16 it usually comes with.

So that on our pc, we have the private key and during the multiple processes that can use PAM authentication systems: login, xdm, mount, etc (/etc/pam.d/*) we can save ourselves from using our pass or combine the pass with the usb key in order to secure the system better.

The only thing you have to do to enjoy these advantages is to install and configure PAM_USB, it's really simple I took 10min... I even thought I had made a mistake in something given how fast it had gone. But no! it works perfectly.

I hope this functionality is as useful to you as it is to me.

2 comments

Comments from the old blog, as they were written. Comments are closed.

  1. —

    Si voleu usar un sistema d'aquest tipus però no amb pen-drive
    sinó amb claus usb amb hardware intel·ligent i pensat per
    autenticació, però voleu compatibilitat en win i linux en una
    solució opensource:



    "http://openfortress.nl/doc/essay/OnetimeHMAC/">http://openfortress.nl/doc/...

  2. —

    Una solució de seguretat basada en USB dongle prou interessant. Es
    tracta d'un disc dur extern que xifra directament la informació que s'hi
    enmagatzema usant una clau que es guarda en un dispositiu USB. No ús ho
    perdeu sembla prou interessant:



    "http://www.computex.com.tw/news_archive_detail.asp?index=7006">http://www.computex.com.tw/...



    la pàgina del fabricant:



    http://www.kontron.com/