From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Oleg Lebedev <olebedev(at)waterford(dot)org> |
Cc: | Postgres SQL Mailing List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Connection authentication |
Date: | 2002-04-25 14:43:28 |
Message-ID: | 200204251443.g3PEhSb12314@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Oleg Lebedev wrote:
> Hello,
> I have a problem running a CRON job that vacuums and backs up my
> database when authentication type is set to 'password' in pg_hba.conf
> file. I used to have 'trust'ed settings before and everything was
> working fine. Now I switched to password authentication type, but how
> would a cron script send the password when prompted. I tried to set up
> PGUSER and PGPASSWORD env. vars, but psql still prompts for the
> password.
> Any ideas?
> I am using PostgreSQL 7.1.3 on Red Hat Linux 7.1.
> thanks,
PGUSER/PGPASSWORD certainly should work. Did you export them properly?
The only other idea I have is upgrading to 7.2 where on Linux you can
use ident on local connections. It uses socket authentication and will
not require a password and you don't have to run ident.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Duncan Adams (DNS) | 2002-04-25 14:53:06 | copy command |
Previous Message | Stephan Szabo | 2002-04-25 14:37:51 | Re: Database Server in Recovery mode! |