# mkdir -p /opt/data/abacu
# chmod 2700 /opt/data/abacus
# chown postgres /opt/data/abacus
# su - postgres
-bash-2.05b$ initdb -D /opt/data/abacus
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale en_US.
This locale setting will prevent the use of indexes for pattern matching
operations. If that is a concern, rerun initdb with the collation order
set to "C". For more information see the Administrator's Guide.
Fixing permissions on existing directory /opt/data/abacus... chmod: changing per
missions of `/opt/data/abacus' (requested: 2700, actual: 0700): Operation not pe
rmitted
initdb failed.