Change a user’s UID 

First login as root – Clean login – sudo will not work if you’re changing a UID on an already logged in user.

Find the user’s old UID:

uid=1000(user1) ….

Change the UID:

Update files and directories owned by the user to the new UID:

Reboot and the UID has been changed.