Sometimes it is nice to have a simple way to "reproduce users" on a system
i.e. my server is connected to LDAP and has users / groups defined. I want to be able to create the same UIDs/GIDs without joining to the LDAP server.
This script is designed to help.
- Run it on the server where users are defined.
- It loops through users, code-generating a shell script that can "recreate" those users with proper UID/GID