From: Sean Chittenden <sean@chittenden.org>
To: ivan <ivan@psycho.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: SECURITY
Date: Wed, 21 May 2003 23:39:31 -0700
Message-ID: <20030522063931.GF71079@perrin.int.nxad.com> (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>
> 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 ?
Nope. You need to remove access to the public schema if you want to
prevent this.
REVOKE USAGE ON SCHEMA public FROM PUBLIC;
It also might be wise for you to look at the pg_hba.conf and make use
of the samegroup directive. -sc
PS <feature_request>It'd be really slick if there was a database,
user, and method type that'd be pgsql or some such and would allow
the DBA to configure what users get access to what tables _inside_
of the database via a system catalog, leaving pg_hba.conf as an all
else fails last resort mechanism used in recovery or
bootstrapping.</feature_request>
--
Sean Chittenden
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: sean@chittenden.org, ivan@psycho.pl
Subject: Re: SECURITY
In-Reply-To: <20030522063931.GF71079@perrin.int.nxad.com>
References: <Pine.LNX.4.44.0305212016070.28884-100000@rex.anfa.pl> <20030522063931.GF71079@perrin.int.nxad.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