Received: from europa.fcee.ucp.pt (europa.fcee.ucp.pt [158.162.130.125]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eB7DE2P64346 for ; Thu, 7 Dec 2000 08:14:03 -0500 (EST) (envelope-from ricmarques@spamcop.net) Received: from spamcop.net ([158.162.130.58]) by europa.fcee.ucp.pt (8.9.3/8.9.3) with ESMTP id NAA20563; Mon, 7 Dec 2020 13:22:45 GMT Message-ID: <3A2F8B85.DF782291@spamcop.net> Date: Thu, 07 Dec 2000 13:07:17 +0000 From: Ricardo Dias Marques X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: pg_dump backup problems with password authentication Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/43 X-Sequence-Number: 235 Hi all, I am using PostgreSQL 7.0.2 in RedHat Linux 6.2 I have changed the default authentication, in the pg_hba.conf file, from trust to password. Unfortunately, this is giving me problems with pg_dump I am trying to do a copy of just one database (with all its tables, primary and foreign keys, check clauses, triggers, etc). So, I followed the instructions at: http://postgresql.rmplc.co.uk/users-lounge/docs/7.0/admin/manage-ag1655.htm and did a pg_dump dbname > dbname.pgdump (I replaced dbname by my database name, obviously) Because I have password authentication set, I get an error message: Connection to database 'dbname' failed. fe_sendauth: no password supplied So, I did a man pg_dump and found out that -u would prompt for username and password, and -v would give a verbose output. And so I did: pg_dump -u -v dbname > dbname.pgdump The problem is when I press the ENTER key on that command: it just sits there! Eventually, I have to hit CTRL+C to get out. Can any kind soul explain me what I am doing wrong? :( Thanks in advance, Ricardo Dias Marques ricmarques@spamcop.net