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$2@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

Karl Babcock" <karl(at)knbenterprises(dot)com> wrote in message
news:_pQo7(dot)71168$xb(dot)37085264(at)news1(dot)mntp1(dot)il(dot)home(dot)com(dot)(dot)(dot)
> 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
CREATE USER

Now user root - postgresql superuser.

Bye,
Max.

In response to

Browse pgsql-docs by date

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

Browse pgsql-general by date

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