lk/fundamentals/pam.md

17 lines
493 B
Markdown
Raw Normal View History

2020-01-02 00:04:35 +00:00
The Pluggabble Authentication Module controls minimum security requirements, such as password lengths.
Configuration rests in `/etc/pam.d/common-password`, or sometimes `system-auth`.
The file might be edited to contain:
```
password required pam_cracklib.so minlen=12 lcredit=1
ucredit=1 dcredit=2 ocredit=1
```
This would enforce a minimum length of 12 characters for a password, one lowercase character, one upper case character, two digits, and one other (special) character.