Re: Questions from a Newbie

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: John Gardner <john(dot)gardner(at)tagish(dot)co(dot)uk>, Postgresql Mailing list <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Questions from a Newbie
Date: 2007-02-20 17:14:58
Message-ID: 733601.10815.qm@web31805.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


--- John Gardner <john(dot)gardner(at)tagish(dot)co(dot)uk> wrote:
> 1) listen_addresses in postgresql.sql - The documentation states that;
>
> "...The value takes the form of a comma-separated list of host names
> and/or numeric IP addresses. The special entry * corresponds to all
> available IP interfaces. If the list is empty, the server does not
> listen on any IP interface at all, in which case only Unix-domain
> sockets can be used to connect to it. The default value is localhost,
> which allows only local "loopback" connections to be made. This
> parameter can only be set at server start."

I am not really sure about the full used of the listen_addresses variable in the postgresql.conf
file. I just leave it as *. The pg_hba.conf file is what I use to specify the security that I
want. It gives you the ability to specify exactly who can connect and how the connections will be
authenticated.

this link describes the conf file and its use:
http://www.postgresql.org/docs/8.2/interactive/auth-pg-hba-conf.html

> 2) How do you set the default 'postgres' Login Role to have a password?
> I did what I thought was the correct way in PgAdmin to assign it a
> password, and resultant code in the SQL pane does seem like it has an
> MD5 password assigned to it, but our security scanning software still
> assures me that, "Your PostgreSQL database is not password protected.
> We could log in as the user 'postgres'."
>

The ability to log into as user postgres is also dictated by the setting in the pg_hba.conf. If
you change the settings, you will probably get the effect that you want.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Shane Ambler 2007-02-20 17:27:49 Re: Questions from a Newbie
Previous Message John Gardner 2007-02-20 14:27:16 Questions from a Newbie