Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 450814773B4 for ; Tue, 9 Jul 2002 06:40:30 -0400 (EDT) Mailbox-Line: From michael.schulte@sun.com Tue Jul 9 06:40:30 2002 Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by postgresql.org (Postfix) with ESMTP id 04F144778FB for ; Tue, 9 Jul 2002 04:51:40 -0400 (EDT) Received: from sr-epdb01-01.Germany.Sun.COM ([129.157.48.1]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA17239 for ; Tue, 9 Jul 2002 02:51:40 -0600 (MDT) Received: from sun.com (minden [129.157.48.206]) by sr-epdb01-01.Germany.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL, v2.2) with ESMTP id KAA22299 for ; Tue, 9 Jul 2002 10:51:39 +0200 (MEST) Message-ID: <3D2AA41B.7070608@sun.com> Date: Tue, 09 Jul 2002 10:51:39 +0200 From: "Michael A. Schulte" User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.0) Gecko/20020611 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: psql in Batch mode and passwords? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-0.1 required=5.0 tests=SUBJ_ENDS_IN_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200207/126 X-Sequence-Number: 4812 Hi, does anyone have an idea how to convince psql to accept a password that is passed during startup of psql in the command line? I don't want to modify pg_hba.conf so that it is open for everyone so I have inserted: local all trust host all 129.157.0.0 255.255.0.0 password I look for something like: psql -h somehost -a dash anonymous/anonym where there exists a postgres user named "anonymous" and the password is anonym. Best regards, Michael