This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: postgres connection problem


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 !<socket>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@tishler.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]