我正在尝试根据不同的 UID 配置密码策略。例如:
- UID 1000-1999 would have Password minimum lenght of 15
- UID 2000-2999 would have Password minimum lenght of 20
...
这将如何配置? /etc/security/pwquality.conf 似乎没有 UID 分离,所以我假设我必须使用 /etc/pam.d/system-auth 和/或 /etc/pam.d/password -auth,但我还没有找到有效的配置。