Re: Password as a command line argument to createuser

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Password as a command line argument to createuser
Дата
Msg-id 4768B855.20601@commandprompt.com
обсуждение исходный текст
Ответ на Password as a command line argument to createuser  ("Jane Ren" <j2ren@ucsd.edu>)
Список pgsql-general
Jane Ren wrote:
> Hi,
>
> I need to write a script that creates a new user with a password
> automatically.
>
> Is there a way I can specify the password as a command line argument to
> createuser?
>

Since you have access to the shell use psql -U user -c "create role ..."

Joshua D. Drake

> It looks like postgres does not read from stdin, but from /dev/tty.
>
> Thanks
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org/
>


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

Предыдущее
От: "Jane Ren"
Дата:
Сообщение: Password as a command line argument to createuser
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Password as a command line argument to createuser