Edit script in rpm of install ISO prior to install

view story

http://forums.fedoraforum.org – Problem description: I have existing systems that have users UID's and GID's defined at 500 and up. The pre-existing files associated with these users are numerous. Since F15 or so the SYS UID's have been extended into the 500-1000 range conflicting with existing UID base. Proposed solution: Extract from the ISO the shadow-utils rpm and edit the login.defs script to restrict SYS_UID / GID to <500. And then to allow user UID and GID > 500. I would then have to rebuild the rpm and replace the original on the install ISO. So assuming I have rpm-build and rpm-dev-tools installe (HowTos)