pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: sdfasdf asdfasdf <sofiamay@mail.ru>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
Date: Sat, 26 Apr 2014 15:32:59 -0400
Message-ID: <13383.1398540779@sss.pgh.pa.us> (raw)
In-Reply-To: <1398498604.307715770@f420.i.mail.ru>
References: <20140425075608.2714.57886@wrigleys.postgresql.org>
	<20140425181538.GP2556@tamriel.snowman.net>
	<1398498604.307715770@f420.i.mail.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

=?UTF-8?B?c2RmYXNkZiBhc2RmYXNkZg==?= <sofiamay@mail.ru> writes:
> IT IS A SECURITY (NETWORK) BUG (bind to all ip instead of 127.0.0.1).

No, it's pilot error.

> 2) In config file i wrote:
> listen_addresses = '127.0.0.1'
> 3) Then i do init db and run this command:

If you did things in that order, it would not have worked anyway, because
the config file that the postmaster will use doesn't exist until initdb
creates it.  However, the real problem appears to be here:

> C:\database\PostgreSQL-9.3.4\bin\pg_ctl.exe start -w -D "C:\Postgre" -s -o "-i"

The -o "-i" part is passing a -i command line switch to the postmaster,
and that sets listen_addresses to "*", overriding whatever might be in
the config file.  If you'd looked at pg_settings as I advised yesterday,
you'd have seen the evidence of this immediately.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <13383.1398540779@sss.pgh.pa.us>
Permalink:  ../13383.1398540779@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13383.1398540779@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sofiamay@mail.ru
  Subject: Re: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
  In-Reply-To: <13383.1398540779@sss.pgh.pa.us>
  References: <20140425075608.2714.57886@wrigleys.postgresql.org> <20140425181538.GP2556@tamriel.snowman.net> <1398498604.307715770@f420.i.mail.ru> <13383.1398540779@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox