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

Re: adding a superuser

From: "Serge V(dot) Tarasov" <max(at)gilbor(dot)ru>
To: pgsql-docs(at)postgresql(dot)org(dot)pgsql-general(at)postgresql(dot)org
Subject: Re: adding a superuser
Date: 2001-09-17 14:34:28
Message-ID: 9o51n1$2371$ (view raw, whole thread or download thread mbox)
Lists: pgsql-docspgsql-general
Karl Babcock" <karl(at)knbenterprises(dot)com> wrote in message
> 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(at)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

Now user root - postgresql superuser.


In response to

pgsql-docs by date

Next:From: Oliver ElphickDate: 2001-09-17 15:19:06
Subject: Re: adding a superuser
Previous:From: Vince VielhaberDate: 2001-09-17 13:26:16
Subject: Re: Need this missing document

pgsql-general by date

Next:From: Lincoln YeohDate: 2001-09-17 14:45:12
Subject: Re: MySQL development MUST immdediately cease - Due to
Previous:From: Krog, KennethDate: 2001-09-17 14:18:32
Subject: Dropping Fields In A Table

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