Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0III-0007gG-W3 for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2014 22:05:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0III-0003pC-An for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2014 22:05:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0IIF-0003oE-N2 for pgsql-general@postgresql.org; Mon, 06 Jan 2014 22:05:07 +0000 Received: from mail-ie0-x230.google.com ([2607:f8b0:4001:c03::230]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0IID-0001ST-05 for pgsql-general@postgresql.org; Mon, 06 Jan 2014 22:05:07 +0000 Received: by mail-ie0-f176.google.com with SMTP id at1so18730166iec.7 for ; Mon, 06 Jan 2014 14:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=LwoNl8sp2j5nFQgpMvwK7DF81pg/pqfzU7py9rAqStI=; b=jYXnrq5lu9yWb0VE2KO6SWymgr7BpLI8VKLawYrBIZ+NCvxVYtatm59C+VECSOXddF MRj1SseKztb6rA/HcJi+F/mweS8KlnKKkmtDdMbdpyQV7tffKjWgp01zMRDTF9Ivz9VO uuJ1+Tg89hHZJTpxKXKdHpoeCJsbp3BPyMO0ZU83VeSQDiSQeadAuPmWepc2B0p3u/Mg Oh/pt8pyZBKfrPW25GEvO7ZObCOT23Xhsmrv2qcUG2BX/X1QtWDkGY/k4D8u2io64Ufb kkhl3746ZW7LHS/0COORuZVkb4/xktBx0Ci1GV2QpejXThzthfFxNz9iNhDBmMIY0AfG WZ2w== X-Received: by 10.50.61.232 with SMTP id t8mr22091327igr.32.1389045902649; Mon, 06 Jan 2014 14:05:02 -0800 (PST) Received: from stability.med.utah.edu (stability.med.utah.edu. [155.100.158.97]) by mx.google.com with ESMTPSA id f5sm207364igc.4.2014.01.06.14.04.58 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 06 Jan 2014 14:05:01 -0800 (PST) Message-ID: <52CB2889.20006@gmail.com> Date: Mon, 06 Jan 2014 15:04:57 -0700 From: Rob Sargent User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Thunderbird/17.0.9 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: authentication failure 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> <11954.1389044537@sss.pgh.pa.us> In-Reply-To: <11954.1389044537@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------070207070108060304010606" X-Pg-Spam-Score: -2.0 (--) 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 This is a multi-part message in MIME format. --------------070207070108060304010606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/06/2014 02:42 PM, Tom Lane wrote: > 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 > > I've been bit where foreground colour == background colour. rjs --------------070207070108060304010606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 01/06/2014 02:42 PM, Tom Lane wrote:
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


I've been bit where foreground colour == background colour.

rjs

--------------070207070108060304010606--