From: Serge V. Tarasov <max@gilbor.ru>
To: pgsql-docs@postgresql.org.pgsql-general
Subject: Re: adding a superuser
Date: Mon, 17 Sep 2001 18:34:28 +0400
Message-ID: <9o51n1$2371$2@news.tht.net> (raw)
References: <_pQo7.71168$xb.37085264@news1.mntp1.il.home.com>
Karl Babcock" <karl@knbenterprises.com> wrote in message
news:_pQo7.71168$xb.37085264@news1.mntp1.il.home.com...
> 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?
Sorry for may poor english.
First as root use:
su -l postgres
after you may use
createuser root
[root@main /root]# su -l postgres
bash-2.04$ /usr/local/pgsql/bin/createuser root
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
CREATE USER
Now user root - postgresql superuser.
Bye,
Max.
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: max@gilbor.ru, pgsql-docs@postgresql.org.pgsql-general
Subject: Re: adding a superuser
In-Reply-To: <9o51n1$2371$2@news.tht.net>
* 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