Change Linux UID/GID

written on Thursday, March 18, 2010 by

Log in with another user than the one to be edited or reboot into recovery mode and enter the following commands:

$ usermod -u
$ groupmod -g
$ find / -user <user> -exec chown <user> {} \;
$ find / -group <group> -exec chgrp <group> {} \;

Warning: Use on your own risk. This change should only be done by users that know what they're doing.

This entry was tagged sysadmin