Skip to content
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

Can't change password for a user complains about missing dictionary #308

Closed
keithy opened this issue Oct 30, 2019 · 7 comments · Fixed by coreos/fedora-coreos-config#221
Closed

Comments

@keithy
Copy link

keithy commented Oct 30, 2019

So I add a user to the wheel group, and sudo requires a password.
Attempting sudo passwd usename fails due to missing dictionary.

@dustymabe
Copy link
Member

hey @keithy - can you provide the ignition config you are using and a few steps that you execute on the booted system that illustrate the problem you are having?

@keithy
Copy link
Author

keithy commented Nov 6, 2019

At the time I raised the report I do not think that my ignition file contained anything.

I was just trying to change the password for the core user via #> /usr/bin/passwd

/usr/share/cracklib/pw_dict.pwd.gz: No such file or dictionary
BAD PASSWORD: The password fails the dictionary check - error leading dictionary

The solution appears to be indicated here https://serverfault.com/a/813335
I tried editing the file directly it and it does work

session  requisite pam_pwquality.so dictcheck=0 .... etc

@dustymabe
Copy link
Member

At the time I raised the report I do not think that my ignition file contained anything.

weird. how did you get in to the system?

@keithy
Copy link
Author

keithy commented Nov 6, 2019

The problem is present on the liveCD, if you use > sudo passwd
You are correct at that time I had managed to add an ssh-key as my user login, but my attempts to set password_hash were failing.

@bgilbert
Copy link
Contributor

bgilbert commented Nov 7, 2019

I can reproduce this on 20191014:

  1. Set a password for the core account, e.g. using Ignition.
  2. From the core account, run passwd.
  3. Enter a password that passes other validation checks, e.g. is not a palindrome or too short.
[core@localhost ~]$ passwd
Changing password for user core.
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
New password: 

@bgilbert
Copy link
Contributor

bgilbert commented Nov 7, 2019

Thanks for the report. coreos/fedora-coreos-config#221 should fix it.

@dustymabe
Copy link
Member

Thanks for the report. coreos/fedora-coreos-config#221 should fix it.

I was able to get this to work in a local build+test. Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants