How Do I Change the Owner and Group of a File
Determine File Ownership
Use the "ls" command with the "-l" option followed by the file name to display all information about the file. In this lesson, we are interested in the User and Group that own the file.
(1) User - The username of the person who owns the file. By default, the user who creates the file will become its owner.
(2) Group - The usergroup that owns the file. All users who belong into the group that owns the file will have the same access permissions to the file.