Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A7075475970 for ; Mon, 1 Jul 2002 23:52:14 -0400 (EDT) Mailbox-Line: From fuzzy@logon.si Mon Jul 1 23:52:14 2002 Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 85B5C47591C for ; Mon, 1 Jul 2002 23:52:13 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 386C6381B71; Mon, 1 Jul 2002 23:51:40 -0400 (EDT) From: fuzzy@logon.si (Alfred Anzlovar) X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Authentication in batch processing Date: 1 Jul 2002 20:50:14 -0700 Organization: http://groups.google.com/ Lines: 24 Message-ID: References: <200206022022.g52KM8m18308@candle.pha.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.30 X-Spam-Level: X-Archive-Number: 200207/20 X-Sequence-Number: 4707 pgman@candle.pha.pa.us (Bruce Momjian) wrote in message news:<200206022022.g52KM8m18308@candle.pha.pa.us>... > Password prompting was changed in 7.2.X. You can now pass a script into > psql, and you will be prompted for the password on your terminal rather > than having the password coming from the script. > > The best way send the password in 7.2.X is to use 'expect', or use the > PGPASSWORD environment variable. (However, on some OS's, environment > values like PGPASSWORD can be seen by 'ps'.) Another option is that if > /dev/tty can't get opened, the password will be requested from stdin. > Unfortunately, I can't think of an easy way to make /dev/tty fail. I see it as a very radical change in password processing. I know you must have your reasons to have it this way, but there are people like Hal Lynch (or like me), to whom this change introduces many new problems (and does not solve any of security ones). It would be nice if there was an option (in psql) to use stdin instead of /dev/tty to read password(s) (like before 7.2.X). Is this too much to ask? Thanks, Alfred