psql: FATAL: Ident authentication failed for user "username" Error and Solution

Posted on in Categories , , , , , , last updated August 19, 2008

Q. I’ve installed Postgresql under Red Hat Enterprise Linux 5.x server. I’ve created username / password and database. But when I try to connect it via PHP or psql using following syntax:

psql -d myDb -U username -W

It gives me an error that read as follows:

psql: FATAL: Ident authentication failed for user “username”

How do I fix this error?

View Installation / Uninstallation Script Inside The RPM File

Posted on in Categories , , , , , last updated August 16, 2008

Q. How do I view the pre / post installation or uninstallation script inside the RPM file called foo.rpm under Red Hat Enterprise Linux / RHEL / CentOS / Fedora / Suse Linux? How do I list the package specific scriptlet(s) that are used as part of the installation and uninstallation processes?