Skip to content

MaSanTM/PAM_2FA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

PAM 2FA

A PAM module using USB device to authenticate.

This module was developed for Operational Systems II class in my technologycal degree. Below will be the entire installation and execution process.

Arch Linux

alt text

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.

1 PRE-INSTALLATION

1.1 Makepkg

1.1.1 Installing Make

You'll need Make to run the commands for the installation. So:

# pacman -S make

1.1.2 Checking Make

# make -help

1.2 GNU Compiler Collection - GCC

1.2.1 Installing GCC

Then install the GCC to Makepkg work correctly:
# pacman -S gcc

1.2.2 Checking

# gcc -h

1.3 Git - Version Control

1.3.1 Installing Git

Next install the Git to clone the repository:
# pacman -S git

1.3.2 Checking

# git -h

2 INSTALLATION

2.1 Cloning the repository:

# git clone https://www.github.com/MaSanTM/PAM_2FA

You can see the repository in the directory that you have dowloaded it.

2.2 The source files

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

2.2.1 The Makefile

The Makefile will automate your installation process. So run it:
# make 
# make install 

Read the instructions and follow to the next step.

2.3 /etc/pam.d

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:

  • /pam.pdrive/log

  • /pam.pdrive/pdrive.serial
  • 3 MAKE

    3.1 Makepkg utilities

    As root, besides installing you can:


  • Uninstall the modules
  • # make uninstall

    To uninstall the module and all configurations made by him.

    About

    A PAM 2FA project to the ISO200 class at FATEC Americana

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published