14

psql asks for password despite trust authentication

view full story
linux-howto

http://serverfault.com – In /var/lib/pgsql/9.1/data/pg_hba.conf, I have the following: # TYPE DATABASE USER ADDRESS METHOD host all all 127.0.0.1/32 trust But when I execute this: su -c "psql -d postgres" - postgres it asks me for a password. My expectation is that users shoud not be prompted for a password. (HowTos)