-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide pam_passwdqc setup example for Linux #19
Comments
Tested on Ubuntu 22.04: +++ /etc/pam.d/common-password 2022-05-28 12:34:48.086924767 +0000
@@ -22,7 +22,8 @@
# pam-auth-update(8) for details.
# here are the per-package modules (the "Primary" block)
-password [success=1 default=ignore] pam_unix.so obscure yescrypt
+password requisite pam_passwdqc.so config=/etc/passwdqc.conf
+password [success=1 default=ignore] pam_unix.so use_authtok obscure yescrypt
# here's the fallback if no module succeeds
password requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already; Edit: added the optional |
Tested on AlmaLinux 8.5 (RHEL 8.5 rebuild): To build, first After mv /lib/security/pam_passwdqc.so /lib64/security/
ldconfig +++ /etc/pam.d/system-auth 2022-05-28 15:03:09.051496482 +0200
@@ -7,7 +7,7 @@
account required pam_unix.so
-password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
+password requisite pam_passwdqc.so config=/etc/passwdqc.conf
password sufficient pam_unix.so try_first_pass use_authtok nullok sha512 shadow
password required pam_deny.so
+++ /etc/pam.d/password-auth 2022-05-28 15:03:07.069496446 +0200
@@ -7,7 +7,7 @@
account required pam_unix.so
-password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
+password requisite pam_passwdqc.so config=/etc/passwdqc.conf
password sufficient pam_unix.so try_first_pass use_authtok nullok sha512 shadow
password required pam_deny.so
|
Also on the same AlmaLinux 8.5 as above, after Edit: putting this all together, something like this: sudo dnf install pam-devel rpm-build
rpmbuild -tb passwdqc-2.0.2.tar.gz
sudo rpm -Uvh rpmbuild/RPMS/x86_64/passwdqc-2.0.2-owl1.x86_64.rpm Then edit the config files. A concern is that the config files are autogenerated:
|
In
PLATFORMS
, we happen to have more specific instructions for some non-Linux systems than we do for Linux. We should similarly add instructions or/and example(s) for common Linux distributions.Our current:
assumes that the reader knows where and how to add
pam_passwdqc
to the PAM stack, and only needs that specific configuration detail above - but many people reading that don't have such knowledge.For FreeBSD/DragonFly and OpenBSD, we refer to specific pathnames to make edits to. For many people, that's much more helpful.
For Solaris, we refer to a wiki page, which has instructions and examples. That's also more helpful (than what we have for Linux), although we could want to have our documentation in here more self-contained.
The text was updated successfully, but these errors were encountered: