pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
createuser withpassword
3+ messages / 3 participants
[nested] [flat]

* createuser withpassword
@ 2001-04-29 17:39 Ligia Pimentel <lmpimentel@yahoo.com>
  2001-05-04 21:33 ` Re: createuser withpassword Joel Burton <jburton@scw.org>
  2001-05-04 21:46 ` Re: createuser withpassword Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 2 replies; 3+ messages in thread

From: Ligia Pimentel @ 2001-04-29 17:39 UTC (permalink / raw)
  To: pgsql-admin

I want to create a user but I want to assign a password to it from the
comand line, I don't want it to be prompted. Can it be done?

Thank you

Ligia





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: createuser withpassword
  2001-04-29 17:39 createuser withpassword Ligia Pimentel <lmpimentel@yahoo.com>
@ 2001-05-04 21:33 ` Joel Burton <jburton@scw.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Joel Burton @ 2001-05-04 21:33 UTC (permalink / raw)
  To: Ligia Pimentel <lmpimentel@yahoo.com>; +Cc: pgsql-admin

On Sun, 29 Apr 2001, Ligia Pimentel wrote:

> I want to create a user but I want to assign a password to it from the
> comand line, I don't want it to be prompted. Can it be done?

Without messing w/ echoing the password with appropriate newlines, it
doesn't seem possible with createuser.

Instead:
   psql -c "CREATE USER foozle WITH PASSWORD 'blobby'" template1

HTH,
-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: createuser withpassword
  2001-04-29 17:39 createuser withpassword Ligia Pimentel <lmpimentel@yahoo.com>
@ 2001-05-04 21:46 ` Peter Eisentraut <peter_e@gmx.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2001-05-04 21:46 UTC (permalink / raw)
  To: Ligia Pimentel <lmpimentel@yahoo.com>; +Cc: pgsql-admin

Ligia Pimentel writes:

> I want to create a user but I want to assign a password to it from the
> comand line, I don't want it to be prompted. Can it be done?

psql -c "create user foo with password 'bar';"

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-05-04 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-29 17:39 createuser withpassword Ligia Pimentel <lmpimentel@yahoo.com>
2001-05-04 21:33 ` Joel Burton <jburton@scw.org>
2001-05-04 21:46 ` Peter Eisentraut <peter_e@gmx.net>

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