pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jayadevan M <maymala.jayadevan@gmail.com>
Cc: Adrian Klaver <adrian.klaver@gmail.com>
Cc: dinesh kumar <dineshkumar02@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: authentication failure
Date: Mon, 06 Jan 2014 16:42:17 -0500
Message-ID: <11954.1389044537@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFS1N4hjaziR7dWQXO-3rwc5-q+1=2N0oi0Pwb-bC=bXU5Wk3g@mail.gmail.com>
References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com>
	<CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com>
	<CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com>
	<CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com>
	<CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com>
	<52C6C8EE.7060207@gmail.com>
	<9602.1388761635@sss.pgh.pa.us>
	<CAFS1N4g1jmzcdHvOsK4VfzkM0-5YiM4LiDDy0ECJ9YvWrhdt+Q@mail.gmail.com>
	<52C8252C.5050602@gmail.com>
	<CAFS1N4hnYkGW4ynUe+APcRSG0APe+aXytyVKH8zSgZ6ezA+zRA@mail.gmail.com>
	<52C97B38.8010402@gmail.com>
	<CAFS1N4jYfTZpJmLESC9hLex1051k_TX-meoD=fEjBr_NDmS_VQ@mail.gmail.com>
	<27739.1388943779@sss.pgh.pa.us>
	<27855.1388944099@sss.pgh.pa.us>
	<CAFS1N4hjaziR7dWQXO-3rwc5-q+1=2N0oi0Pwb-bC=bXU5Wk3g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Jayadevan M <maymala.jayadevan@gmail.com> writes:
> I am able to login as postgres with password from the same machine. So it
> is not an expiry issue (as you too concluded).  Output from strace is about
> 500 lines. I am pasting what I feel may be relevant. I hope this will be
> useful.

Well, this is pretty interesting:

> open("/dev/tty", O_RDONLY)              = 3
> open("/dev/tty", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffc631e550) = -1 ENOTTY
> (Inappropriate ioctl for device)
> ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B0 -opost -isig icanon -echo
> ...}) = -1 ENOTTY (Inappropriate ioctl for device)
> fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x7fb252e41000
> write(4, "Password: ", 10)              = 10
> fstat(3, {st_mode=S_IFREG|0644, st_size=10, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x7fb252e40000
> read(3, "Password: ", 4096)             = 10
> read(3, "", 4096)                       = 0
> read(3, "", 4096)                       = 0
> ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B0 -opost -isig icanon -echo
> ...}) = -1 ENOTTY (Inappropriate ioctl for device)
> write(4, "\n", 1)                       = 1
> close(3)                                = 0
> munmap(0x7fb252e40000, 4096)            = 0
> close(4)                                = 0

It *is* prompting for a password, or so it thinks.  Apparently /dev/tty
is connected to the bit bucket in your environment?

			regards, tom lane


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



view thread (38+ messages)  latest in thread

Message-ID: <11954.1389044537@sss.pgh.pa.us>
Permalink:  ../11954.1389044537@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11954.1389044537@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, maymala.jayadevan@gmail.com, adrian.klaver@gmail.com, dineshkumar02@gmail.com
  Subject: Re: authentication failure
  In-Reply-To: <11954.1389044537@sss.pgh.pa.us>
  References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com> <CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com> <CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com> <CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com> <CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com> <52C6C8EE.7060207@gmail.com> <9602.1388761635@sss.pgh.pa.us> <CAFS1N4g1jmzcdHvOsK4VfzkM0-5YiM4LiDDy0ECJ9YvWrhdt+Q@mail.gmail.com> <52C8252C.5050602@gmail.com> <CAFS1N4hnYkGW4ynUe+APcRSG0APe+aXytyVKH8zSgZ6ezA+zRA@mail.gmail.com> <52C97B38.8010402@gmail.com> <CAFS1N4jYfTZpJmLESC9hLex1051k_TX-meoD=fEjBr_NDmS_VQ@mail.gmail.com> <27739.1388943779@sss.pgh.pa.us> <27855.1388944099@sss.pgh.pa.us> <CAFS1N4hjaziR7dWQXO-3rwc5-q+1=2N0oi0Pwb-bC=bXU5Wk3g@mail.gmail.com> <11954.1389044537@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