From: Bruno Wolff III <bruno@wolff.to>
To: ivan <ivan@psycho.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: SECURITY
Date: Thu, 22 May 2003 07:31:05 -0500
Message-ID: <20030522123105.GB20191@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.44.0305212016070.28884-100000@rex.anfa.pl>
References: <Pine.LNX.4.44.0305212016070.28884-100000@rex.anfa.pl>
On Wed, May 21, 2003 at 20:18:03 +0200,
ivan <ivan@psycho.pl> wrote:
>
>
> why when i create user and create database for this user, he can connect
> to my others database , (not only his own) and create there tables and
> etc.
> He can not select , delete etc but he can create something and then drop
> this , is can be like a bug ?
In 7.2 and higher you can control this (being able to connect to a database)
in pg_hba.conf by setting up per user per database rules for authentication
methods.
As an alternative in 7.3 and higher you can control being able to create
objects in a database. To prevent creation of schemas and temporary tables
issue:
REVOKE ALL ON DATABASE database_name FROM PUBLIC;
The PUBLIC schema allows object creation by default. To prevent people
from creating objects there issue:
REVOKE CREATE ON SCHEMA PUBLIC FROM PUBLIC;
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-admin@postgresql.org
Cc: bruno@wolff.to, ivan@psycho.pl
Subject: Re: SECURITY
In-Reply-To: <20030522123105.GB20191@wolff.to>
References: <Pine.LNX.4.44.0305212016070.28884-100000@rex.anfa.pl> <20030522123105.GB20191@wolff.to>
* 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