Re: Resetting the pgadmin4 web user credentials - Mailing list pgadmin-support

From Kevin Struckhoff
Subject Re: Resetting the pgadmin4 web user credentials
Date
Msg-id 1900860613.406210.1627424878565@mail.yahoo.com
Whole thread Raw
In response to Resetting the pgadin4 web usto run,er credentials  (Kevin Struckhoff <kevinstruckhoff@yahoo.com>)
Responses Re: Resetting the pgadmin4 web user credentials  (richard coleman <rcoleman.ascentgl@gmail.com>)
List pgadmin-support
Sorry re-posting with a corrected subject.

Thanks. Kevin


On Tuesday, July 27, 2021, 3:20:39 PM PDT, Kevin Struckhoff <kevinstruckhoff@yahoo.com> wrote:


After getting pgadmin4 installed and configured, I've found out that the user credentials I specified during the setup don't work very well. I've added the user to the postgres db using the adduser command. I updated the pg_hba.conf file with an entry just for the user but I get this error when trying to connect for the 1st time:

FATAL: no pg_hba.conf entry for host " my.dbserver.ip.addr", user "p@p.com", database "postgres", SSL off

psql postgres
postgres-# adduser p@p.com
postgres-#\q

pg_hba.conf entries (actual ip number hidden):

host    all             all             my.dbserver.ip.addr/32 trust   
host    all             p@p.com         my.dbserver.ip.addr /32 trust    # for pgadmin4 web

So I would have thought the 1st entry would cover all users. I can't create a linux user because the user name is invalid:

useradd: invalid user name 'p@p.com'

So to make it work, I'd just like to set the username/password to the postgres user. Where can I do that? I don't see a .py or .conf file other than pg_hba.conf where the user is defined.

Thanks. Kevin

pgadmin-support by date:

Previous
From: Kevin Struckhoff
Date:
Subject: Resetting the pgadin4 web usto run,er credentials
Next
From: richard coleman
Date:
Subject: Re: Resetting the pgadmin4 web user credentials