def chown(self, path, user='<STR_LIT>', group='<STR_LIT>'):
_complain_ifclosed(self.closed)<EOL>return self.fs.chown(path, user, group)<EOL>
Change file owner and group.

:type path: str
:param path: the path to the file or directory
:type user: str
:param user: Hadoop username. Set to '' if only setting group
:type group: str
:param group: Hadoop group name. Set to '' if only setting user
:raises: :exc:`~exceptions.IOError`