X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1AA8C539E4 for ; Fri, 1 Apr 2005 06:48:23 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84932-03 for ; Fri, 1 Apr 2005 05:48:15 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by svr1.postgresql.org (Postfix) with ESMTP id 0445F53986 for ; Fri, 1 Apr 2005 06:48:13 +0100 (BST) Received: by wproxy.gmail.com with SMTP id 68so801413wra for ; Thu, 31 Mar 2005 21:48:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=jGAypT3/OEgA+4Ar5cPBqsILtgKH73/qvbzac5IrbctSW1UpUI7eUPWpRb132eQPxuFfhtfLNEScRoYt3SnpCX1LtEtCpk1Bj4rIONP4TCXXmrMCPNVqIjQKhHuOhiR8A+v48jHmUlRZU+GzIK8RdfZVSJFs1vNbe08GLOIZ0Cc= Received: by 10.54.8.72 with SMTP id 72mr388903wrh; Thu, 31 Mar 2005 21:48:13 -0800 (PST) Received: by 10.54.28.46 with HTTP; Thu, 31 Mar 2005 21:48:13 -0800 (PST) Message-ID: <77b69d2105033121483ce20e0a@mail.gmail.com> Date: Fri, 1 Apr 2005 11:18:13 +0530 From: "Vishal Kashyap @ [SaiHertz]" Reply-To: "Vishal Kashyap @ [SaiHertz]" To: Christopher Kings-Lynne Subject: Re: PostgreSQL Backup Script Cc: pgsql-php@postgresql.org In-Reply-To: <424CD58F.3040108@familyhealth.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <77b69d2105033120543ca670a7@mail.gmail.com> <424CD58F.3040108@familyhealth.com.au> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.25 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200504/3 X-Sequence-Number: 3087 > I suggest allowing the 'postgres' user to connect with 'ident sameuser' > in pg_hba.conf from the localhost only, then always just run pg_dump as > 'postgres'. That means # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD host localhost 255.255.255.255 ident sameuser only will NOT be asked for password when it does pg_dump -U when logged in to its shell account with and If I run a crontab with user the above lines again stands true. What you say ? -- With Best Regards, Vishal Kashyap. Lead Software Developer, http://saihertz.com, http://vishalkashyap.tk