Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

How do create a user with a bashscript



Hi.
I want to create a user with the  createuser  command and supply the
password at the command line in a script, like this

#!/bin/bash
createuser  myuser

but I want to supply a password on the command line, is that possible?
The docs tells me no, but does anyone know of a workaround?



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group