| 1 |
This pam module provides the authentication service using an own set of user/password pairs. |
| 2 |
|
| 3 |
CONFIGURATION |
| 4 |
============= |
| 5 |
|
| 6 |
simple PAM config |
| 7 |
----------------- |
| 8 |
|
| 9 |
Just add/change the config file for service to contain the line: |
| 10 |
|
| 11 |
auth required pam_pwdfile.so pwdfile=/path/to/passwd_file |
| 12 |
|
| 13 |
If your service does more with PAM than auth there will be a fallback to the service "other". |
| 14 |
If that is not what you want, you can use pam_permit.so or pam_deny.so for that: |
| 15 |
|
| 16 |
account required pam_permit.so |
| 17 |
session required pam_permit.so |
| 18 |
password required pam_deny.so |
| 19 |
|
| 20 |
|
| 21 |
options |
| 22 |
------- |
| 23 |
|
| 24 |
* pwdfile=<file> |
| 25 |
* debug: produce a bit of debug output |
| 26 |
* nodelay: don't tell the PAM stack to cause a delay on auth failure |
| 27 |
* flock: use a shared (read) advisory lock on pwdfile, you should better move new versions into place instead |
| 28 |
|
| 29 |
|
| 30 |
PASSWORD FILE |
| 31 |
============= |
| 32 |
|
| 33 |
The password file basically looks like passwd(5): one line for each user with two or more colon-separated fields. |
| 34 |
First field contains the username, the second the crypt()ed password. |
| 35 |
Other fields are optional. |
| 36 |
|
| 37 |
crypt()ed passwords in various formats can be generated with mkpasswd from the whois package. |