pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Agnar Renolen <agnar.renolen@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@postgresql.org
Subject: Re: Getting started with first user.
Date: Tue, 9 Jan 2018 20:20:40 +0100
Message-ID: <b4638391-aae4-1195-ac0c-8334711e749f@gmail.com> (raw)
In-Reply-To: <3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com>
References: <CABE_MPz9M0XSkuzQdKSWh0=Mcs4T6JCy8UQ6n2j4aahY9_=b9A@mail.gmail.com>
	<3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com>

Found out a way out.

Logged in as *root*, and created a password for the *postgres* user.

Then logged in as *postgres* and and ran "createuser -s me".

Then logging in as *me*, ran "createdb"

Agnar

On 09/01/2018 17:13, Adrian Klaver wrote:
> On 01/09/2018 01:48 AM, Agnar Renolen wrote:
>> I have just installed PostGIS (Postgres9.6) on a Debian server using 
>> apt-get.
>>
>> But I have problems doing anything:
>>
>> I installed as root, but trying doing things as my local user "me"
>>
>> me> createuser me
>> createuser: could not connect to database postgres: FATAL: role "me" 
>> does not exist
>>
>> Then, trying the same as root, but gettinge the same result.
>>
>> root> createuser me
>> createuser: could not connect to database postgres: FATAL: role 
>> "root" does not exist
>>
>> Then trying with the -U postgres option.
>>
>> root> createuser -U postgres me
>> createuser: could not connect to database postgres: FATAL: Peer 
>> authentication failed for user "postgres"
>>
>> How do I get started?
>
>
> https://wiki.debian.org/PostgreSql#User_access
>
>

view thread (6+ messages)

Message-ID: <b4638391-aae4-1195-ac0c-8334711e749f@gmail.com>
Permalink:  ../b4638391-aae4-1195-ac0c-8334711e749f@gmail.com/
Also on:    postgresql.org/message-id/b4638391-aae4-1195-ac0c-8334711e749f@gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: agnar.renolen@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Getting started with first user.
  In-Reply-To: <b4638391-aae4-1195-ac0c-8334711e749f@gmail.com>
  References: <CABE_MPz9M0XSkuzQdKSWh0=Mcs4T6JCy8UQ6n2j4aahY9_=b9A@mail.gmail.com> <3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com> <b4638391-aae4-1195-ac0c-8334711e749f@gmail.com>

* 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