Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0HwF-0006w5-S3 for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2014 21:42:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0HwF-0000wM-4P for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2014 21:42:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0HwD-0000w4-Rj for pgsql-general@postgresql.org; Mon, 06 Jan 2014 21:42:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0HwB-0007Ja-IN for pgsql-general@postgresql.org; Mon, 06 Jan 2014 21:42:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s06LgHME011955; Mon, 6 Jan 2014 16:42:17 -0500 From: Tom Lane To: Jayadevan M cc: Adrian Klaver , dinesh kumar , "pgsql-general@postgresql.org" Subject: Re: authentication failure In-reply-to: References: <52C6C8EE.7060207@gmail.com> <9602.1388761635@sss.pgh.pa.us> <52C8252C.5050602@gmail.com> <52C97B38.8010402@gmail.com> <27739.1388943779@sss.pgh.pa.us> <27855.1388944099@sss.pgh.pa.us> Comments: In-reply-to Jayadevan M message dated "Mon, 06 Jan 2014 10:22:01 +0530" Date: Mon, 06 Jan 2014 16:42:17 -0500 Message-ID: <11954.1389044537@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Jayadevan M 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