-
Notifications
You must be signed in to change notification settings - Fork 171
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
Issue with Task 4.4.3.4.1 Ensure pam_unix does not include nullok #375
Comments
hi @msachikanta Thank you for raising this issue, i'm looking and putting a few fixes together and submitting the PR shortly. Many thanks uk-bolly |
Hi @uk-bolly this is not fixed yet. I just did an AMI build, and found its been updated as below:
If you see, the lines in both I think you would have to check the regex that is being used in the ansible role, I would suggest to use following regex, because I have tested it locally and it works fine.
|
hi @msachikanta You should find this issue has been resolved and is in devel? Many thanks uk-bolly |
Merged to main uk-bolly |
Describe the Issue
Noticed regex is not updating the values properly in
/etc/pam.d/password-auth
and/etc/pam.d/system-auth
.ansible.builtin.replace
section of the Task 4.4.3.4.1 seems not to be working as expected.I could see its updating the pam files as below:
word
sufficient
is getting replaced withnullok
, which should not be happening.Expected Behavior
After updating the pam files, they should have following line:
Actual Behavior
After updating the pam files, the line is appearing as below:
Environment (please complete the following information):
Additional Notes
Updating the regex can fix the issue.
Possible Solution
Here is my proposed solution. I have tested the fix, and it is working fine for me.
The text was updated successfully, but these errors were encountered: