Thread: How to set password without echoing characters?

How to set password without echoing characters?

From
Yang Zhang
Date:
Anyone know how to set your password without having it visible in the
terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a
program that already does this. Thanks.

Re: How to set password without echoing characters?

From
Adrian Klaver
Date:
On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote:
> Anyone know how to set your password without having it visible in the
> terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a
> program that already does this. Thanks.

http://www.postgresql.org/docs/9.0/interactive/libpq-pgpass.html
--
Adrian Klaver
adrian.klaver@gmail.com

Re: How to set password without echoing characters?

From
Yang Zhang
Date:
On Wed, Apr 6, 2011 at 2:15 PM, Yang Zhang <yanghatespam@gmail.com> wrote:
> On Wed, Apr 6, 2011 at 2:09 PM, Adrian Klaver <adrian.klaver@gmail.com> wrote:
>> On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote:
>>> Anyone know how to set your password without having it visible in the
>>> terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a
>>> program that already does this. Thanks.
>>
>> http://www.postgresql.org/docs/9.0/interactive/libpq-pgpass.html
>
> This seems to only address authenticating with an already-set
> password, and not setting the password....
>

Just discovered the \password psql command. Thanks.

Re: How to set password without echoing characters?

From
Yang Zhang
Date:
On Wed, Apr 6, 2011 at 2:09 PM, Adrian Klaver <adrian.klaver@gmail.com> wrote:
> On Wednesday, April 06, 2011 2:00:53 pm Yang Zhang wrote:
>> Anyone know how to set your password without having it visible in the
>> terminal, psql history, etc. (i.e. getpass(3))? Hoping there's a
>> program that already does this. Thanks.
>
> http://www.postgresql.org/docs/9.0/interactive/libpq-pgpass.html

This seems to only address authenticating with an already-set
password, and not setting the password....