Difference between revisions of "CentOS 8.x Configure password complexity"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Configure password complexity">CentOS 8.x System Administration|System Administration</yambe:breadcrumb> =CentOS 8.x Configure password complexity= To...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x Configure password complexity]] | |||
To configure password complexity in CentOS 8 use: | To configure password complexity in CentOS 8 use: | ||
Line 34: | Line 33: | ||
Refer: | Refer: | ||
* https://kifarunix.com/enforce-password-complexity-policy-on-centos-7-rhel-derivatives/ | * https://kifarunix.com/enforce-password-complexity-policy-on-centos-7-rhel-derivatives/ | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x Configure password complexity]] |
Latest revision as of 03:30, 19 April 2022
Home > CentOS > CentOS 8.x > System Administration > CentOS 8.x Configure password complexity
To configure password complexity in CentOS 8 use:
- Install required packages
- dnf -y install authselect-compat
- Create authselect profile based on sssd for configuring password-complexity
- authselect create-profile sssd-prod1 -b sssd
- This creates new authentication profile at '/etc/authselect/custom/sssd-prod1'
- List the profiles with
- authselect list
- See current profile with
- authselect current
- Select the new profile using:
- authselect select custom/sssd-prod1
- Configure password complexity using:
- authconfig --enablereqlower --enablerequpper --enablereqdigit --enablereqother --passminlen=8 --passmaxrepeat=3 --update
- This ensures that various files in /etc/pam.d require use of pam_pwquality.so. This also updates /etc/security/pwquality.conf.d/10-authconfig-pwquality.conf with required password complexity configuration.
Refer:
Home > CentOS > CentOS 8.x > System Administration > CentOS 8.x Configure password complexity