Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Enhance PostgreSQL security

Provide more secure defaults for Host Based Access (pg_hba.conf).

 - Use ident in lieu of trust for shell access

 - Use md5 in lieu of trust for epgsql access
  • Loading branch information...
commit e6c78c670b8ef8cda7ff6ed610cee1ee633b487f 1 parent 698a43a
@AlainODea AlainODea authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 zotonic_install
6 zotonic_install
@@ -15,9 +15,9 @@ CREATE DATABASE zotonic WITH OWNER = zotonic ENCODING = 'UTF8';
\c zotonic
CREATE LANGUAGE \"plpgsql\";" | su -l postgres -c psql && \
echo "# Zotonic settings
-local all zotonic trust
-host all zotonic trust
-host all zotonic ::1/128 trust" >> /etc/postgresql/8.4/main/pg_hba.conf && \
+local all zotonic ident
+host all zotonic md5
+host all zotonic ::1/128 md5" >> /etc/postgresql/8.4/main/pg_hba.conf && \
/etc/init.d/postgresql reload && \
mkdir /home/zotonic &&\
Please sign in to comment.
Something went wrong with that request. Please try again.