ubuntu:pam:configure_pam
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:pam:configure_pam [2019/12/01 12:51] – peter | ubuntu:pam:configure_pam [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - PAM - Configure PAM ====== | ====== Ubuntu - PAM - Configure PAM ====== | ||
- | The main configuration file for PAM is / | + | The main configuration file for PAM is **/ |
PAM will ignore the file if the directory exists. | PAM will ignore the file if the directory exists. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Syntax of Main Configuration File ===== | ||
The syntax for the main configuration file is as follows. | The syntax for the main configuration file is as follows. | ||
Line 35: | Line 39: | ||
===== Syntax of PAM config files ===== | ===== Syntax of PAM config files ===== | ||
- | The syntax of each file in /etc/pam.d/ is similar to that of the main file and is made up of lines of the following form: | + | The syntax of each file in **/etc/pam.d/** is similar to that of the main file and is made up of lines of the following form: |
< | < | ||
Line 46: | Line 50: | ||
account required pam_nologin.so | account required pam_nologin.so | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Understanding PAM Management Groups and Control-flags ===== | ||
+ | |||
+ | PAM authentication tasks are separated into four independent management groups. | ||
+ | |||
+ | These groups manage different aspects of a typical user’s request for a restricted service. | ||
+ | |||
+ | A module is associated to one these management group types: | ||
+ | |||
+ | * **account: | ||
+ | * **authentication: | ||
+ | * **password: | ||
+ | * **session: | ||
+ | |||
+ | PAM loadable object files (the modules) are to be located in the following directory: / | ||
+ | |||
+ | The supported control-flags are: | ||
+ | |||
+ | * **requisite: | ||
+ | * **required: | ||
+ | * **sufficient: | ||
+ | * **optional: | ||
+ | |||
+ | In addition to the above are the keywords, there are two other valid control flags: | ||
+ | |||
+ | * **include: | ||
+ | * **substack: | ||
ubuntu/pam/configure_pam.1575204678.txt.gz · Last modified: 2020/07/15 09:30 (external edit)