chown
chown
(CHange OWNership) A Unix command that allows the root user to change the owner and group assigned to files, directories and links. The following example changes ownership of fileABC and dirXYZ to mary.chown mary fileABC dirXYZ
Chown can also function like the chgrp command and change the group and owner at the same time. The following example changes owner to mary and the group to mygroup. See ls, chgrp and chmod.
chown mary:mygroup fileABC dirXYZ