Introduction
Sometimes files or folders belong to the wrong user or group, which can stop you or others from opening or editing them. The chown command changes who owns a file or folder so the right people can access it.
When you create files as root but want a regular user to own them for easier access.
When you copy files from another system and need to fix ownership to match your users.
When a script creates files owned by one user but another user needs to use them.
When setting up shared folders where a specific group should own the files.
When fixing permissions after restoring backups that changed ownership.