Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
libpwquaily rpm requires cracklib-dict to function but RPM missing requirement
Version-Release number of selected component (if applicable):
# rpm -qa | egrep 'libpwquality|cracklib'
libpwquality-1.4.0-9.el8.x86_64
cracklib-2.9.6-15.el8.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Minimal OS install via kickstart
2. Create User
3. Have user attempt to change password
Actual results:
[hartsjc@localhost ~]$ passwd
Changing password for user hartsjc.
Current password:
New password:
/usr/share/cracklib/pw_dict.pwd.gz: No such file or directory
BAD PASSWORD: The password fails the dictionary check - error loading dictionary
passwd: Authentication token manipulation error
Expected results:
User should be able to change password
Additional info:
1. Issue is still present with RHEL 8.4 libpwquality-1.4.4-1.el8
2. dnf will pick up the cracklib-dict as a weak dependency.
# dnf reinstall libpwquality
========================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================
Reinstalling:
libpwquality x86_64 1.4.0-9.el8 rhel-8-for-x86_64-baseos-rpms 103 k
Installing weak dependencies:
cracklib-dicts x86_64 2.9.6-15.el8 rhel-8-for-x86_64-baseos-rpms 4.0 M
========================================================================================================================
3. But dependency is NOT picked up at RPM level, and thus repository, satellite, and anaconda fail to enforce/require the cracklib-dict dependency.
# rpm --test -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $?
0
# rpm -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $?
0
4. So while the cracklib-dict RPM dependecy isn't set, the RPM states it as requirement in info
# rpm -q --info libpwquality | sed -n '/^Description/,/^BoGuS$/p'
Description :
This is a library for password quality checks and generation
of random passwords that pass the checks.
This library uses the cracklib and cracklib dictionaries <----- says needs cracklib-dict in text
to perform some of the checks.
# rpm -q --requires libpwquality | grep -i crack
libcrack.so.2()(64bit) <----------------------- Actual required need
# rpm -q --provides cracklib | grep libcrack.so
libcrack.so.2()(64bit) <----------------------- Meets required need
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (libpwquality bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:1605
Description of problem: libpwquaily rpm requires cracklib-dict to function but RPM missing requirement Version-Release number of selected component (if applicable): # rpm -qa | egrep 'libpwquality|cracklib' libpwquality-1.4.0-9.el8.x86_64 cracklib-2.9.6-15.el8.x86_64 How reproducible: 100% Steps to Reproduce: 1. Minimal OS install via kickstart 2. Create User 3. Have user attempt to change password Actual results: [hartsjc@localhost ~]$ passwd Changing password for user hartsjc. Current password: New password: /usr/share/cracklib/pw_dict.pwd.gz: No such file or directory BAD PASSWORD: The password fails the dictionary check - error loading dictionary passwd: Authentication token manipulation error Expected results: User should be able to change password Additional info: 1. Issue is still present with RHEL 8.4 libpwquality-1.4.4-1.el8 2. dnf will pick up the cracklib-dict as a weak dependency. # dnf reinstall libpwquality ======================================================================================================================== Package Architecture Version Repository Size ======================================================================================================================== Reinstalling: libpwquality x86_64 1.4.0-9.el8 rhel-8-for-x86_64-baseos-rpms 103 k Installing weak dependencies: cracklib-dicts x86_64 2.9.6-15.el8 rhel-8-for-x86_64-baseos-rpms 4.0 M ======================================================================================================================== 3. But dependency is NOT picked up at RPM level, and thus repository, satellite, and anaconda fail to enforce/require the cracklib-dict dependency. # rpm --test -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $? 0 # rpm -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $? 0 4. So while the cracklib-dict RPM dependecy isn't set, the RPM states it as requirement in info # rpm -q --info libpwquality | sed -n '/^Description/,/^BoGuS$/p' Description : This is a library for password quality checks and generation of random passwords that pass the checks. This library uses the cracklib and cracklib dictionaries <----- says needs cracklib-dict in text to perform some of the checks. # rpm -q --requires libpwquality | grep -i crack libcrack.so.2()(64bit) <----------------------- Actual required need # rpm -q --provides cracklib | grep libcrack.so libcrack.so.2()(64bit) <----------------------- Meets required need