Pluggable Authentication Module which allows to login using NFC targets.
pam_nfc stable versions can be downloaded at GitHub. As usual, you will have to extract, compile and install pam_nfc to use it.
pam_nfc development version depends on development version of Libnfc, so you need to fetch, compile and install it.
To build pam_nfc, you have to checkout sources:
git clone https://github.com/nfc-tools/pam_nfc.git cd pam_nfc
Once fetched, you can now compile pam_nfc using usual autotools way:
Before compile it, remember to run
Under GNU/Linux based system
./configure --prefix=/usr --sysconfdir=/etc --with-pam-dir=/lib/security make sudo make install
Under *BSD based system
./configure --with-pam-dir=/usr/local/lib CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" gmake sudo gmake install
Now, pam_nfc is installed in your system but you need to setup PAM files to allow the use of pam_nfc. This configuration depends on your needs but usually pam_nfc is used to be able to system login using a tag. You just need to add this line:
auth sufficient pam_nfc.so
in the right place like:
To use pam_nfc, you need to associate users and tags. To do that, simply put the wanted tag and launch:
This tool will "enroll" tag with corresponding user.