Modification du compte Monitor
sudo -u postgres -i
cd /production/pgsql/data/
Modification :
vim /production/pgsql/data/pg_hba.conf
#host all monitor 10.0.0.0/8 password
host all monitor 10.1.1.85/32 password
Modification mot de passe compte postgresql monitor :
psql test
test=# \du
List of roles
Role name | Attributes | Member of
--------------+------------------------------------------------------------+-----------
test | | {}
monitor | Superuser | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
postgresdump | Superuser | {}
ALTER USER monitor WITH PASSWORD 'password';
systemctl reload postgresql-12
Nb : pour avoir le nom exact du service : systemctl --type=service | grep postgre
No Comments