Here in CS we have to deal with some very old accounts where we don't want their user-ids (UIDs) and group-ids (GIDs) changed from what they've always been (isn't legacy support wonderful:-)). This means that other than account "nobody" we don't want any of the new system, software and user IDs to conflict with our current legacy IDs. Therefore we want to modify the newly installed OS installation so none of its IDs are between 100 and 10^9. Also we want to modify "/etc/adduser.conf" so adduser will not create new identities between 100 and 10^9.

With the help of a simple script and then a reboot, we can do this quite easily (on server images, doesn't work with desktop images yet):
wget -O /tmp/fixids https://www.cs.uwaterloo.ca/cscf/infrastructure/setups/ubuntu/UW-CS-custom/bin/fixids
(cd; sh -x /tmp/fixids >& OUTPUT.fixids)
  
Yes fixids takes a while to run as it searches the whole disk a couple of time for the ids it changed.
reboot