The lchown function changes the owner and/or group of the specified file (file_path). If the file is a symbolic link, the owner of the symbolic link is modified (in contrast to chown which would modify the file that the symbolic link points to). See also symlink, unlink, readlink, realpath, and lstat.