int chown(const char* path, uid_t owner, gid_t group);
Changes the owner to owner and group to group for the file at path. If path is a symbolic link, the link is followed. Returns zero on success, or the negation of the error code on error.
fchown, lchown