Re: BUG #13188: .pgpass does not work
От
Jeff Janes
Тема
Re: BUG #13188: .pgpass does not work
Дата
Msg-id
CAMkU=1y+F+sg4+UNOPsUc8BfJmiaukSJR8LPAOqoewF7N4Kgag@mail.gmail.com
Ответ на
Re: BUG #13188: .pgpass does not work (bzb.dev001@gmail.com)
Список
Дерево обсуждения
BUG #13188: .pgpass does not work bzb.dev001@gmail.com
Re: BUG #13188: .pgpass does not work "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #13188: .pgpass does not work "bzb.dev001@gmail.com" <bzb.dev001@gmail.com>
Re: BUG #13188: .pgpass does not work "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #13188: .pgpass does not work "bzb.dev001@gmail.com" <bzb.dev001@gmail.com>
Re: BUG #13188: .pgpass does not work "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #13188: .pgpass does not work "bzb.dev001@gmail.com" <bzb.dev001@gmail.com>
Re: BUG #13188: .pgpass does not work Jeff Janes <jeff.janes@gmail.com>
Re: BUG #13188: .pgpass does not work "bzb.dev001@gmail.com" <bzb.dev001@gmail.com>
Re: BUG #13188: .pgpass does not work "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #13188: .pgpass does not work "bzb.dev001@gmail.com" <bzb.dev001@gmail.com>
On Wed, Apr 29, 2015 at 11:23 AM, bzb.dev001@gmail.com wrote:
>
> I've changed back the owner of .pgpass to the account that I've logged in
> as. This is the account that I'm using to run psql.
> All the spaces in .pgpass is removed.
> Checked that the permission settings of .pgpass is ok.
> restarted the server...
>
> $ sudo service postgresql restart
>
> Unfortunately, it is still not working.
>
> $ psql --host=localhost --port=5432 --username=postgres --no-password
> psql: fe_sendauth: no password supplied
>
>
I wonder if it is even finding the file in the first place.
strace psql --host=localhost --port=5432 --username=postgres
--no-password 2>&1 | fgrep pgpass
This is what I get:
stat("/home/jjanes/.pgpass", {st_mode=S_IFREG|0600, st_size=196, ...}) = 0
open("/home/jjanes/.pgpass", O_RDONLY) = 3
For me it found the file and opened it successfully.
Cheers,
JeffВ списке pgsql-bugs по дате отправления