From: Medi Montaseri <montaseri@gmail.com>
To: Илья Скорик <ilya.skorik@inprint.ru>
Cc: pgsql-admin@postgresql.org
Subject: Re: How add db users from shell script with their passwords?
Date: Tue, 3 Jun 2008 01:28:44 -0700
Message-ID: <8078a1730806030128n791e9c30v254e896588875468@mail.gmail.com> (raw)
In-Reply-To: <2dfe6d090806030054xba3b05bu5faf1de9c09e6929@mail.gmail.com>
References: <2dfe6d090806030054xba3b05bu5faf1de9c09e6929@mail.gmail.com>
You can write a program in say Perl and use "create user bob with
.....options ....encrypted password xxxxx valid until xxx " which is pretty
much what createuser(1) does.
Cheers
Medi
On Tue, Jun 3, 2008 at 12:54 AM, Илья Скорик <ilya.skorik@inprint.ru> wrote:
> Dear community, help please.
>
> I need to add some standard users to database together with their
> standard passwords from a shell script. That the script would not ask
> to enter passwords manually for each user. How it can be made?
>
> How I have understood, createuser comand does not allow to make it?
>
> In advance thanks.
>
> --
> --
> С уважением, Илья Скорик
> специалист
> Inprint - автоматизация вашего издательства
>
> Yours faithfully, Ilya Skorik
> the expert
> Inprint - automation of your publishing house
>
> e-mail: ilya.skorik@inprint.ru
> web: http://www.inprint.ru/
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: montaseri@gmail.com, ilya.skorik@inprint.ru
Subject: Re: How add db users from shell script with their passwords?
In-Reply-To: <8078a1730806030128n791e9c30v254e896588875468@mail.gmail.com>
References: <2dfe6d090806030054xba3b05bu5faf1de9c09e6929@mail.gmail.com> <8078a1730806030128n791e9c30v254e896588875468@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox