pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thorsten Haude <postgresql@thorstenhau.de>
To: PostgreSQL Novice ML <pgsql-novice@postgresql.org>
Subject: Re: create database, user
Date: Sun, 17 Mar 2002 17:43:50 +0100
Message-ID: <20020317164350.GA3928@eumel.yoo.net> (raw)
In-Reply-To: <web-823225@davinci.ethosmedia.com>
References: <20020310182306.GS808@eumel.yoo.net>
	<web-823225@davinci.ethosmedia.com>

Hi,

* Josh Berkus <josh@agliodbs.com> [02-03-10 20:16]:
>> - I have still not grasped how I should connect to the DBMS for
>>  things
>> like that; there is no root. Is there a document describing best
>> practices somewhere?
>First, read:  http://www.postgresql.org/idocs/index.php?user-manag.html
Done.

>Your "root" user for PostgreSQL should be the user "postgres", unless
> you have used a non-standard install.  In a secure system, the
> postgres user should belong to the group "daemon", own the pgsql/
> driectory tree, and have a secure password, both on the system and on
> the database.  The postgres user will also own the databases template1
> and template0.  In a regular install, the postgres user will have
> inhereted whatever passowrd it had on the host system.
I think I understand the role of the template dbs, but why are there
two of them?

>This will give you a new database with wwwuser as its owner.  wwwuser
> will have full rights on all database objects.  However, this is a not
> terribly secure setup, and I wouldn't reccomend it for any public
> website.
Well, this will never reach the Internet, it is completely in-home.
But since one of the purposes of this application is the learning
effect, I'll follow your advice.

>You may wish to subscribe to the pgsql-php or pgsql-perl mailing lists.
I'll do that.

Thank you!

Thorsten
-- 
There is no drug known to man which becomes safer when its
production and distribution are handed over to criminals.



view thread (7+ messages)

Message-ID: <20020317164350.GA3928@eumel.yoo.net>
Permalink:  ../20020317164350.GA3928@eumel.yoo.net/
Also on:    postgresql.org/message-id/20020317164350.GA3928@eumel.yoo.net

 · 

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-php@postgresql.org
  Cc: postgresql@thorstenhau.de, pgsql-novice@postgresql.org
  Subject: Re: create database, user
  In-Reply-To: <20020317164350.GA3928@eumel.yoo.net>
  References: <20020310182306.GS808@eumel.yoo.net> <web-823225@davinci.ethosmedia.com> <20020317164350.GA3928@eumel.yoo.net>

* 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