Thread: How to set password without echoing characters?
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.
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
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.
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....