Bug 725073

Summary: Unmodified /etc/login.defs replaced on upgrade, breaking existing systems
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: adel.gadllah, gholms, pvrabec, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-25 09:22:26 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 717109    
Attachments:
Description Flags
Preserve unmodified login.defs on upgrade
none
Preserve unmodified login.defs on upgrade none

Description Miloslav Trmač 2011-07-22 14:35:54 EDT
Created attachment 514765 [details]
Preserve unmodified login.defs on upgrade

Even with %config(noreplace) the configuration file is replaced when it was not modified by users.  This is correct behavior, but it means that the [GU]ID_MIN change from 500 to 1000 would break existing systems.

The attached patch adds scriptlets that manually preserve the old configuration.  The md5sum value matches the login.defs file shipped in Fedora 1[345].
Comment 1 Miloslav Trmač 2011-07-22 14:37:30 EDT
Created attachment 514766 [details]
Preserve unmodified login.defs on upgrade