Thanks Keith, Since in the pg_hba.conf file the all databases column is set to “all” can “web_u1” user not be a superuser, as I created with the CREATEUSER flag, and still
work with all the databases? The GRANT option seems to be tale or database specifc. From: Keith [mailto:keith@xxxxxxxxxxx]
On Mon, Nov 9, 2015 at 5:16 PM, Marc Fromm <Marc.Fromm@xxxxxxx> wrote:
The third column in those config lines is for the roles (users). You can define the authentication method per role. "all" is just a keyword for any role. So if you want to allow the "postgres" role to connect with no password, but restrict the new user to requiring a password you could do. local all postgres trust local all web_u1 md5 host all postgres 127.0.0.1/32 trust host all web_u1 127.0.0.1/32 md5 host all postgres ::1/128 trust host all web_u1 ::1/128 md5 Then once you've got all your config files fixed, you can remove those trust lines Keith |