How to Change a USER and GROUP ID on Linux For All Owned Files

Originally published at: https://www.cyberciti.biz/faq/linux-change-user-group-uid-gid-for-all-owned-files/

I would like to know how to change a UID (USER ID)/GID (GROUP ID) and all belonging files on Linux operating system. Say, I want to change UID from 1005 to 2005 and GID from 1005 to 2005 on Linux. How do I make such change for belonging files and directories?


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki