Re: adding a superuser

From: Arne Weiner <aswr(at)gmx(dot)de>
To: pgsql-docs(at)postgresql(dot)org(dot)pgsql-general(at)postgresql(dot)org
Subject: Re: adding a superuser
Date: 2001-09-16 10:01:53
Message-ID: 3BA47891.C06B247B@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

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.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message TeuK 2001-09-16 14:38:51 Re: adding a superuser
Previous Message Tom Lane 2001-09-16 05:56:21 Re: Large Objects

Browse pgsql-general by date

  From Date Subject
Next Message Justin Clift 2001-09-16 10:30:34 Re: Problem with database: FATAL 1: cannot find attribute 24
Previous Message hubert depesz lubaczewski 2001-09-16 08:07:40 non fatal casting?