code: def chput(local_path=None, remote_path=None, user=None, group=None,
            mode=None, use_sudo=True, mirror_local_mode=False, check=True):
      
      # pylint: disable=R0913
      result = None
      if env.get('full') or not check or diff(local_path, remote_path):
          result = put(local_path, remote_path, use_sudo,
                       mirror_local_mode, mode)
      with hide('commands'):
          chown(remote_path, user, group)
      return result
docs: Put file and set user and group ownership.  Default to use sudo.