Bug 1221910 - [doc] Issue in "Restricting use of previous passwords"
Summary: [doc] Issue in "Restricting use of previous passwords"
Status: RESOLVED FIXED
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP3
Classification: SUSE Linux Enterprise Server
Component: Documentation (show other bugs)
Version: SLES15SP3Maint-Upd
Hardware: All All
: P5 - None : Normal
Target Milestone: unspecified
Assignee: Amrita Sakthivel
QA Contact: Frank Sundermeyer
URL:
Whiteboard: https://jira.suse.com/browse/DOCTEAM-...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 08:28 UTC by Shinkichi Yamazaki
Modified: 2024-04-10 16:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinkichi Yamazaki 2024-03-25 08:28:18 UTC
Restricting use of previous passwords:

https://documentation.suse.com/sles/15-SP3/html/SLES-all/sec-sec-user-management.html#sec-sec-prot-general-pam-pw-previous

"14.4.2 Restricting use of previous passwords".

According to the current documentation, it is stated that after executing the command #pam-config -a --pwhistory --pwhistory-remember=26, the configuration should be reflected in the /etc/pam.d/common-auth file as follows:

password required pam_pwhistory.so remember=26

However, upon verification within my testing environment, I have found that this configuration is not added to /etc/pam.d/common-auth as described. Instead, the configuration is correctly applied to /etc/pam.d/common-password with the same parameters:

password required pam_pwhistory.so remember=26

I kindly request that the documentation be updated to accurately reflect that the configuration is applied to /etc/pam.d/common-password rather than /etc/pam.d/common-auth. This correction will undoubtedly help prevent confusion and ensure a smoother configuration process for future users.



------
Default: /etc/pam.d/common-password
 # cat common-password
 password        requisite       pam_cracklib.so
 password        required        pam_unix.so     use_authtok nullok shadow try_first_pass

After setting pwhistory:/etc/pam.d/common-password
 #  pam-config -a --pwhistory --pwhistory-remember=26
 # cat common-password
 password        requisite       pam_cracklib.so
 password        required        pam_pwhistory.so        remember=26
 password        required        pam_unix.so     use_authtok nullok shadow try_first_pass
Comment 2 Tomáš Bažant 2024-04-09 08:43:30 UTC
Thank you for reporting this bug!
It is being tracked and processed as part of our queue.
Comment 3 Amrita Sakthivel 2024-04-10 06:33:48 UTC
Testing
Comment 7 Amrita Sakthivel 2024-04-10 09:12:27 UTC
Thanks for confirming
Comment 12 Amrita Sakthivel 2024-04-10 16:50:20 UTC
Merged to main and respective maintenance branches. Changes to docs will reflect on Thursday.
Comment 13 Amrita Sakthivel 2024-04-10 16:50:55 UTC
Merged