View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000401 | Pgpool-II | Bug | public | 2018-05-29 01:55 | 2018-06-04 12:40 |
| Reporter | Peruzzo | Assigned To | |||
| Priority | low | Severity | tweak | Reproducibility | always |
| Status | resolved | Resolution | open | ||
| Platform | Linux | OS | Ubuntu | OS Version | 16.04 LTS |
| Product Version | 3.7.2 | ||||
| Summary | 0000401: PCP commands requesting a password even with .pcppass file | ||||
| Description | I created a ~/.pcppass with my credentials but with any commando (eg: pcp_node_info) my password is still requested. If I use the "-w" option or just press enter the command finishes as expected. The expected behaviour (IMHO) is to prompt the password only if the file is not present | ||||
| Steps To Reproduce | Create the .pcppass file (with the required permissions) and execute any command (eg: pcp_node_info 0), the prompt will be presented | ||||
| Tags | No tags attached. | ||||
|
|
It seems worked by me. Did you create the .pcppass file in user's home directory? [pengbo@localhost pgpoolsetup]$ pgpool -v pgpool-II version 3.7.2 (amefuriboshi) [pengbo@localhost pgpoolsetup]$ ll /home/pengbo/.pcppass -rw------- 1 pengbo pengbo 30 5月 29 10:07 /home/pengbo/.pcppass [pengbo@localhost pgpoolsetup]$ pcp_node_info -n 0 -p 11001 -U pengbo -w /tmp 11002 1 0.500000 waiting primary |
|
|
I believe that "-w" is just to force to not ask for the password, if you don't specify AND there is a match in .pcppass it should not ask for the credentials. ubuntu@brapsql1:~$ pgpool -v pgpool-II version 3.7.2 (amefuriboshi) ubuntu@brapsql1:~$ ls -l ~/.pcppass -rw------- 1 ubuntu ubuntu 23 May 28 14:10 /home/ubuntu/.pcppass ubuntu@brapsql1:~$ pcp_node_info -h localhost -n 0 Password: <I just press enter here, without suplying a password) 10.211.5.180 5432 2 0.058824 up primary |
|
|
This is the feature of pcp commands. To never prompt for password you have to use "-w" option. |
|
|
Shall we close this issue, because it is not a bug. |