Re: Authentication in batch processing

Поиск
Список
Период
Сортировка
От fuzzy@logon.si (Alfred Anzlovar)
Тема Re: Authentication in batch processing
Дата
Msg-id a09d3977.0207011950.4266647e@posting.google.com
обсуждение исходный текст
Ответ на Re: Authentication in batch processing  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Authentication in batch processing  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-admin
pgman@candle.pha.pa.us (Bruce Momjian) wrote in message news:<200206022022.g52KM8m18308@candle.pha.pa.us>...
> Password prompting was changed in 7.2.X.  You can now pass a script into
> psql, and you will be prompted for the password on your terminal rather
> than having the password coming from the script.
>
> The best way send the password in 7.2.X is to use 'expect', or use the
> PGPASSWORD environment variable. (However, on some OS's, environment
> values like PGPASSWORD can be seen by 'ps'.)  Another option is that if
> /dev/tty can't get opened, the password will be requested from stdin.
> Unfortunately, I can't think of an easy way to make /dev/tty fail.

I see it as a very radical change in password processing.

I know you must have your reasons to have it this way, but there are
people like Hal Lynch (or like me), to whom this change introduces
many new problems (and does not solve any of security ones).

It would be nice if there was an option (in psql) to use stdin instead of
/dev/tty to read password(s) (like before 7.2.X).

Is this too much to ask?

Thanks,
Alfred

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Robson"
Дата:
Сообщение: Too many clients already
Следующее
От: Preston de Guise
Дата:
Сообщение: pg_dumpall -> database import -> user problem.