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

Re: adding a superuser

From: "Karl Babcock" <karl(at)knbenterprises(dot)com>
To: pgsql-docs(at)postgresql(dot)org(dot)pgsql-general(at)postgresql(dot)org
Subject: Re: adding a superuser
Date: 2001-09-16 16:09:02
Message-ID: y84p7.73922$xb.38456999@news1.mntp1.il.home.com (view raw or flat)
Thread:
Lists: pgsql-docspgsql-general
I tried that and it says:

psql: Peer authentication failed for user 'postgres'
createuser: creation of user "root" failed


"TeuK" <humpf(at)yahoo(dot)fr> wrote in message
news:9o2dhq$gc$1(at)front4m(dot)grolier(dot)fr(dot)(dot)(dot)
> I think user root is not known in Postgres user and that's why you want to
> add it (;
>
> try :
>
> createuser -d -a -U postgres root
>
> As a rule postgres is running under postgres user account that is a
> superuser.
>
> So try psl -U postgres
> "Karl Babcock" <karl(at)knbenterprises(dot)com> a crit dans le 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?
> >
> > Thanks in advance,
> >
> > Karl
> >
> >
>
>



In response to

pgsql-docs by date

Next:From: Justin CliftDate: 2001-09-16 18:31:17
Subject: Re: [GENERAL] SQL Server to PostgreSQL HOWTO
Previous:From: TeuKDate: 2001-09-16 14:38:51
Subject: Re: adding a superuser

pgsql-general by date

Next:From: Marc G. FournierDate: 2001-09-16 17:05:45
Subject: Major change to CVS effective immediately ...
Previous:From: TeuKDate: 2001-09-16 14:38:51
Subject: Re: adding a superuser

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