From: | "Iain" <iain(at)mst(dot)co(dot)jp> |
---|---|
To: | "Andrei Bintintan" <klodoma(at)ar-sd(dot)net>, <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Win32 Postgresql Command Line Password Specification |
Date: | 2005-02-08 08:37:54 |
Message-ID: | 000d01c50db9$7e7b0730$7201a8c0@mst1x5r347kymb |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I think that's the best way to do it.
Rather than leave passwords lying around in script files, it might be best
to trust a specific (specially created) user when running from a specific
location on the specific database. Then you just have to keep that user
account secure. I can imagine how it would work wth linux, but am not sure
what problems youmay face under windows.
The only other alternative I can imagine is to use another program to type
the password in automatically. I've never done it but I'm sure such a beast
must exist.
The long and the short of it is (at least upto 7.4.6 - I don't know about
later versions) thereis no way to specify the password on the commandline.
Regards
Iain
----- Original Message -----
From: Andrei Bintintan
To: pgsql-admin(at)postgresql(dot)org
Sent: Tuesday, February 08, 2005 5:11 PM
Subject: [ADMIN] Win32 Postgresql Command Line Password Specification
Hi,
I have to run some command line commands that I have to run on a windows
machine. Like pgsql, dropdb, createdb etc.
All these commands are runned from a php scripts.
Now, my question is how can I specify a User and Password to postgresql
database system. I found out how can I say the user, but the password is
always asked in the command line. I need this also to be specified in the
command.
for example: dropdb database1 -U postgres -W.... always ask a password in
the command line.
I want to specify in the command line the pass.
The only solution that I found for this problem is to put the postgre user
autentication to trust and to skip the password.
Andy.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Arthurs | 2005-02-08 09:01:53 | Re: Win32 Postgresql Command Line Password Specification |
Previous Message | Andrei Bintintan | 2005-02-08 08:11:20 | Win32 Postgresql Command Line Password Specification |