|
|
|
@ -51,7 +51,7 @@ GRANT ALL ON SCHEMA public TO postgres; |
|
|
|
|
``` |
|
|
|
|
create a new `pg_hba.conf` to force password authentication and reject non local |
|
|
|
|
``` |
|
|
|
|
cd /etc/postgres/<version>/<branch>/ |
|
|
|
|
cd /etc/postgresql/<version>/<branch>/ |
|
|
|
|
mv pg_hba.conf pg_hba.conf.old |
|
|
|
|
``` |
|
|
|
|
``` |
|
|
|
@ -62,7 +62,7 @@ local sameuser all md5 |
|
|
|
|
host all all 0.0.0.0/0 reject |
|
|
|
|
``` |
|
|
|
|
``` |
|
|
|
|
systemctl restart postgres |
|
|
|
|
systemctl restart postgresql |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
#### Dependencies |
|
|
|
|