Changing user and group IDs in Linux

less than 1 minute read

Changing a user id will only change ownership of files that are in that user’s home directory. Look at this SO question. Also, you might have to change the group id of the user’s group before changing the user and group ids of a user, because the new group must exist before you can change the group id. Doing a man usermod also helps.

Leave a Comment