Обсуждение: Access to pg_hba.conf

Поиск
Список
Период
Сортировка

Access to pg_hba.conf

От
Jane Geering
Дата:


I have a functioning PostgreSQL 9.1.1 installation on a Mac OSX 10.6.8 machine, installed using EnterpriseDB one-click installer.  The data files are (presumably) in /Library/PostgreSQL/9.1/data/.

From my reading of the docs I believe this is where pg_hba.conf will be found.  What do I have to do to gain access to the files in the /data directory?   Tried RTFM but frankly am too intellectually challenged to understand.  Can anyone help?

Jane

Re: Access to pg_hba.conf

От
Phil Dobbin
Дата:
On 18/11/11 23:27, "Jane Geering" <jane.geering@gmail.com> wrote:

> I have a functioning PostgreSQL 9.1.1 installation on a Mac OSX 10.6.8
> machine, installed using EnterpriseDB one-click installer.  The data files are
> (presumably) in /Library/PostgreSQL/9.1/data/.
>
> From my reading of the docs I believe this is where pg_hba.conf will be found.
>  What do I have to do to gain access to the files in the /data directory?  
> Tried RTFM but frankly am too intellectually challenged to understand.  Can
> anyone help?

You can do it by:

$sudo su
$password

#su postgres
bash3.2: whoami
bash3.2: _postgres

Which will give you access to all postgres directories & files. But there is
probably a much better solution on its way to you from more learned members
than I ;-)...

Cheers,

    Phil.

--
Nothing to see here... move along, move along


Re: Access to pg_hba.conf

От
Arvind Sharma
Дата:
You can either use 'sudo' to  'cd' to that DATA directory, OR  'sudo su - postgres'  (assuming you have 'postgres' added as the user while installation) - then you are free to traverse the $PG_DATA directory.

Arvind



From: Jane Geering <jane.geering@gmail.com>
To: postgresql novice <pgsql-novice@postgresql.org>
Sent: Friday, November 18, 2011 3:27 PM
Subject: [NOVICE] Access to pg_hba.conf



I have a functioning PostgreSQL 9.1.1 installation on a Mac OSX 10.6.8 machine, installed using EnterpriseDB one-click installer.  The data files are (presumably) in /Library/PostgreSQL/9.1/data/.

From my reading of the docs I believe this is where pg_hba.conf will be found.  What do I have to do to gain access to the files in the /data directory?   Tried RTFM but frankly am too intellectually challenged to understand.  Can anyone help?

Jane


Re: Access to pg_hba.conf

От
Jane Geering
Дата:
Thanks Phil.  Got it.

On Sat, Nov 19, 2011 at 9:57 AM, Jane Geering <jane.geering@gmail.com> wrote:


I have a functioning PostgreSQL 9.1.1 installation on a Mac OSX 10.6.8 machine, installed using EnterpriseDB one-click installer.  The data files are (presumably) in /Library/PostgreSQL/9.1/data/.

From my reading of the docs I believe this is where pg_hba.conf will be found.  What do I have to do to gain access to the files in the /data directory?   Tried RTFM but frankly am too intellectually challenged to understand.  Can anyone help?

Jane
Jane