From: Arne Weiner <aswr@gmx.de>
To: pgsql-docs@postgresql.org.pgsql-general
Subject: Re: adding a superuser
Date: Sun, 16 Sep 2001 12:01:53 +0200
Message-ID: <3BA47891.C06B247B@gmx.de> (raw)
References: <_pQo7.71168$xb.37085264@news1.mntp1.il.home.com>
Karl Babcock wrote:
>
> Hi, I have just installed PostgreSQL 7.1 and am having a hard time adding
> users. I am trying to add a superuser but I keep getting errors with the
> createuser script.
>
> I am user 'root' on the Linux system when I run:
>
> lightning:/# createuser -d -a root
> psql: FATAL 1: user "root" does not exist
> createuser: creation of user "root failed
>
> Does anyone know how I could create a superuser or any user?
>
> Thanks in advance,
>
> Karl
You have to supply the -U option if you specify the username in the
command line.
createuser -d -a -U root
Or you just say:
createuser -d -a
and you will be prompted for username.
Arne Weiner.
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: aswr@gmx.de, pgsql-docs@postgresql.org.pgsql-general
Subject: Re: adding a superuser
In-Reply-To: <3BA47891.C06B247B@gmx.de>
* 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