X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7FC83D1B557 for ; Wed, 12 Nov 2003 14:05:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 90418-03 for ; Wed, 12 Nov 2003 10:05:26 -0400 (AST) Received: from nil.tinet.org (tinet.org [195.77.216.130]) by svr1.postgresql.org (Postfix) with ESMTP id E75B3D1B535 for ; Wed, 12 Nov 2003 10:05:21 -0400 (AST) Received: from tinet.org ([195.76.233.3]) by nil.tinet.org (Netscape Messaging Server 4.1) with ESMTP id HO8SGK02.D6Y for ; Wed, 12 Nov 2003 15:05:08 +0100 Message-ID: <3FB23DD1.3090301@tinet.org> Date: Wed, 12 Nov 2003 15:04:01 +0100 From: Daniel Rubio User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: pgsql-admin@postgresql.org Subject: Re: pg_dump still requires password References: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/208 X-Sequence-Number: 11195 > When I issue the command it is asking for passwd which I cannot used for > cronjob to run at midnight. Execute the task as user postgres (crontab for postgres, not root) and modify pg_hba.conf to permit access in trust mode (without asking for password) e.g : local all postgres trust You can subtitute postgres for the user you need and the database too (if the dump is not pg_dumpall) > > > > Please help. How I do solve this problem. > > > > I have posted this earlier the suggestion was to use pgpass but that > does not help. What other way can I achive this. > > > > Regards, > > Ganesan > > > -- ******************************************************** Daniel Rubio Rodríguez OASI (Organisme Autňnom Per la Societat de la Informació) c/ Assalt, 12 43003 - Tarragona Tef.: 977.244.007 - Fax: 977.224.517 e-mail: drubio@oasi.org ********************************************************