Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sun, 5 Aug 2001 21:11:32 -0400 From: Jason Tishler To: Markus Hoenicka Cc: cygwin AT cygwin DOT com Subject: Re: postgres connection problem Message-ID: <20010805211132.A1564@dothill.com> Mail-Followup-To: Markus Hoenicka , cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15208.8759.467000.79427@gargle.gargle.HOWL> User-Agent: Mutt/1.3.18i Organization: Dot Hill Systems Corp. Markus, On Wed, Aug 01, 2001 at 03:37:27PM +0000, Markus Hoenicka wrote: > So from the "postgres" account I can connect as user "markus" just > fine. From my "markus" account this results in a refused connection > unless I use a TCP/IP based connection by providing a > hostname/IP-address. > > Is this the expected behaviour? On Wed, Apr 04, 2001 at 10:02:50PM +0400, Egor Duda wrote: > this patch prevents local users from connecting to cygwin-emulated > AF_UNIX socket if this user have no read rights on socket's file. > it's done by adding 128-bit random secret cookie to !port > string in file. later, each processes which is negotiating connection > via connect() or accept() must signal its peer that it knows this > secret cookie. My WAG (without actually trying out the hypothesis) is that user markus does not have the appropriate permissions to read the Unix domain socket file that was created by user postgres. Would you be willing to run the following: $ strace -o psql.log psql template1 and report back to the list? Thanks, Jason -- Jason Tishler Director, Software Engineering Phone: 732.264.8770 x235 Dot Hill Systems Corp. Fax: 732.264.8798 82 Bethany Road, Suite 7 Email: jason AT tishler DOT net Hazlet, NJ 07730 USA WWW: http://www.dothill.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/