Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a pam module? [closed]

Tags:

linux

pam

Can anyone tell me about this... I want to create a pam module similar to the login module in /etc/pam.d

like image 214
Innovators Avatar asked Jan 30 '11 04:01

Innovators


People also ask

How do I disable PAM authentication?

Open the PAM configuration file in your preferred text editor. On most systems you can do this in the built-in "nano" editor by typing "nano /etc/pam. conf." Press "Enter" and on the very top line write "skip-authentication".

Where are PAM modules stored?

PAM configuration files are stored in the /etc/pam. d/ directory.

Which PAM module is used in user login?

The login application prompts for a user name and password, then makes a libpam authentication call to ask, "Is this user who they say they are?" The pam_unix module is responsible for checking the local account authentication.


1 Answers

If you are looking for pam based face authentication during login, you need to write a module which does that for you and plug that in login configuration file at /etc/pam.d/login.

Before directly get into this, I would suggest you to write some simple module to understand the flow, working of PAM and configuration file like start playing with sshd pam configuration file and try to plug some sample pam module available. I found these article quite helpful :

http://aplawrence.com/Basics/understandingpam.html

https://www.packtpub.com/article/development-with-pluggable-authentication-modules-pam

FYI : Rohan Anil developed pam-face-authentication during GSOC08 under opensuse which is hosted at code.google.com/p/pam-face-authentication/

like image 77
GG. Avatar answered Nov 07 '22 12:11

GG.