I have a CentOS machine, and I made a test user then set his password to splinter:
# useradd test1
# usermod -p splinter test1
Then I tested it by logging in:
mycentos login: test1
The secure log said:
Mar 21 22:31:00 myhost unix_chkpwd: password check failed for user (test1)
So I tried to change password to splinter using passwd function:
# passwd test1
New Password: [typed splinter here]
Retype New Password: [typed splinter here]
Logged in just fine with user test1... So am I missing something? I chose splinter as the test password simply because it has no special chars etc, so I figured the usermod command would have no issues.
Why is usermod failing to change the password but the passwd command works just fine?