Re: Password as a command line argument to createuser

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Password as a command line argument to createuser
Дата
Msg-id 11107.1198045400@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Password as a command line argument to createuser  ("Jane Ren" <j2ren@ucsd.edu>)
Список pgsql-general
"Jane Ren" <j2ren@ucsd.edu> writes:
> Is there a way I can specify the password as a command line argument to
> createuser?

No, and it would be a really bad idea if you could, as the password
would be exposed to everyone else on the machine (via "ps") while
createuser runs.

There are various ways to do this securely, but putting the password
on a program's command line isn't one of them.  I'd suggest looking
at how psql's \password command does it.

            regards, tom lane

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Password as a command line argument to createuser
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Password as a command line argument to createuser