Changing UIDs and GIDs for a user Updated 2 Mar 2012 Read time 1 min 40 sec(s) (2902 visits). A quick procedure to change the UID and GID for a given user using the usermod and groupmod commands.