How to set password without echoing characters?

Started by Yang Zhangabout 15 years ago4 messagesgeneral
Jump to latest
#1Yang Zhang
yanghatespam@gmail.com

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.

#2Adrian Klaver
adrian.klaver@aklaver.com
In reply to: Yang Zhang (#1)
Re: How to set password without echoing characters?

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

#3Yang Zhang
yanghatespam@gmail.com
In reply to: Adrian Klaver (#2)
Re: How to set password without echoing characters?

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....

#4Yang Zhang
yanghatespam@gmail.com
In reply to: Yang Zhang (#3)
Re: How to set password without echoing characters?

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.