How to reset password of superuser if forget it

It seems can not update pg_hba.conf
If I patch “pgHBA” :[“local all all trust”], it will append on the last line, it will not work.
Any idea to reset the password if forget it?
@sgotti