ubuntu 13.04 で postgresql 9.1 のデータ ディレクトリを変更する際に問題が発生しています。
私は最初に次のことを行いました:
sudo pg_dropcluster --stop 9.1 main
次に、目的のパスに新しいものを作成しようとしました:
sudo pg_createcluster -d /home/fccoelho/Documentos/databases/postgresqldata 9.1 main
しかし、許可が拒否されて失敗します:
Creating new cluster (configuration: /etc/postgresql/9.1/main, data: /home/fccoelho/Documentos/databases/postgresqldata/)...
initdb: could not access directory "/home/fccoelho/Documentos/databases/postgresqldata": Permission denied
Error: initdb failed
パーミッションを確認し、ディレクトリを手動で作成し、後でユーザー postgres に「chowning」しようとしたことなどを言及する必要がありますが、パーミッション拒否メッセージは何も変更されませんでした。
また、POstgresql で配布されている initdb バイナリを使用しようとしましたが、成功しませんでした
どうすればこれを機能させることができますか?