The fchown function has the same effect as chown except that the file whose owner and group are to be changed is specified by the file descriptor fildes.