Giter Site home page Giter Site logo

alexander-naumov / pam2control Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 145 KB

Easily configurable authentication provider

License: GNU General Public License v3.0

C 85.10% Makefile 3.76% Roff 11.15%
pam security linux login pam-authentication protection

pam2control's Introduction

pam2control

Build Status License

pam2control, commonly known as p2c, is the easily configurable PAM-based authentication provider. It makes it possible to manages access for some users (or group of users; LDAP is supported) just by adding one single line to the config file. It can notify you by sending an email if somebody login on server. It uses syslog and also its own logfile for every login-/logout-events.

It supports FreeBSD and GNU/Linux systems.

Features

  • Behavior of pam2control is set using config file.
  • Possibility to control access for single specific user, groups of users or LDAP groups.
  • Email notification for every new login.
  • 2FA for SSH login: autogenerated 8 digit one-time PIN via email.
  • Syslog messages (supports verbose debug mode).
  • Its own logfile for every login/logout events.
  • Works with OpenPAM and Linux-PAM.
  • p2ctl - console client of pam2control for PAM services management.
  • Separated access rules for SSH password and public key authentication.
  • GPG encryption for 2FA PIN and notification emails.
  • Separated access rules for SSH- and SCP-sessions.

Installing pam2control

git clone https://github.com/alexander-naumov/pam2control
cd pam2control/src
make
sudo make install

The p2c.conf man page has details on how to configure pam2control.

Credits

Copyright (c) 2018-2021 Alexander Naumov ([email protected]).

Licensed under GNU GPLv3 (see LICENSE file).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.