This module was developed for Operational Systems II class in my technologycal degree. Below will be the entire installation and execution process.
For this, was used Arch Linux distribution. The version, is not so important and can be downloaded here: https://archlinux.org/download/ You are free to use any Linux distribution you like.
You'll need Make to run the commands for the installation. So:
# pacman -S make
# make -help
# pacman -S gcc
# gcc -h
# pacman -S git
# git -h
# git clone https://www.github.com/MaSanTM/PAM_2FA
You can see the repository in the directory that you have dowloaded it.
Entering in the source folder you'll see some files in .c and a Makefile. If you want, see the contents.# cat addpendrive.c
or
# cat Makefile
# make
# make install
Read the instructions and follow to the next step.
Now, you can go to the PAM directories of your distribution:# cd /etc/pam.d
In this directory, a folder with the name "pam.pdrive" was created. Inside it:
# make uninstall
To uninstall the module and all configurations made by him.