Re: Running postgres with a different user/group

From: Gabriele Bulfon <gbulfon(at)sonicle(dot)com>
To: Gabriele Bartolini <Gabriele(dot)Bartolini(at)2ndQuadrant(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Running postgres with a different user/group
Date: 2010-11-03 11:43:50
Message-ID: 16857477.45.1288784630465.JavaMail.root@www
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanx guys, all of your solutions are fine, but I could manage it in a different manner.
Modified the ident map file to map my special system user to postgres, so I don't have to
specify the postgres user any more ;)
Thanx!
Gabriele.
-= Mail sent through WebTop2 =-
----------------------------------------------------------------------------------
Da: Gabriele Bartolini
A: Gabriele Bartolini
Cc: Gabriele Bulfon
pgsql-general(at)postgresql(dot)org
Data: 3 novembre 2010 12.26.04 CET
Oggetto: Re: [GENERAL] Running postgres with a different user/group
Hi Gabriele,
I forgot to mention one thing.
That means that PostgreSQL is successfully running. Try and connect to
the
database using a different user by passing the '-U' option to psql or by
setting the PGUSER environment variable.
PostgreSQL creates a role/user inside the cluster with the same name as
the user that ran initdb.
Try and connect to either the postgres or the template1 database, by
executing:
psql template1
or
psql postgres
and then type:
\du
This will give you a list of the roles (users) inside the database.
Please make sure you specify the right port and host (or Unix socket) to
psql.
Ciao,
Gabriele
--
Gabriele Bartolini - 2ndQuadrant Italia
PostgreSQL Training, Services and Support
Gabriele(dot)Bartolini(at)2ndQuadrant(dot)it - www.2ndQuadrant.it

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gabriel Dinis 2010-11-03 12:04:59 PHP Web Auditing and Authorization
Previous Message Gabriele Bartolini 2010-11-03 11:26:04 Re: Running postgres with a different user/group