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

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 (view raw or flat)
Thread:
Lists: pgsql-docspgsql-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

pgsql-docs by date

Next:From: TeuKDate: 2001-09-16 14:38:51
Subject: Re: adding a superuser
Previous:From: Tom LaneDate: 2001-09-16 05:56:21
Subject: Re: Large Objects

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group