pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedsecurity
9+ messages / 8 participants
[nested] [flat]
* security
@ 2000-01-15 08:34 sk.list@comset.net
2000-01-16 20:13 ` Re: [ADMIN] security Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 9+ messages in thread
From: sk.list@comset.net @ 2000-01-15 08:34 UTC (permalink / raw)
To: pgsql-admin
Hi!
I need to prevent user access to other user's database.
By default any user can connect to any database and read its scheme at least.
How to restrict this access?
User should connect to database he have access only.
SKiller
--------------------------
Sergei Keler
WebMaster of "ComSet"
E-Mail: skiller@comset.net
http://www.comset.net
--------------------------
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: [ADMIN] security
2000-01-15 08:34 security sk.list@comset.net
@ 2000-01-16 20:13 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 9+ messages in thread
From: Peter Eisentraut @ 2000-01-16 20:13 UTC (permalink / raw)
To: sk.list@comset.net; +Cc: pgsql-admin
On 2000-01-15, sk.list@comset.net mentioned:
> I need to prevent user access to other user's database.
> By default any user can connect to any database and read its scheme at least.
> How to restrict this access?
> User should connect to database he have access only.
If you are using ident "authentication" then you can do that by setting up
a different mapping file for each database. See pg_hba.conf for
details. If you're using password authentication you have to set up a
different password file for each database. See again pg_hba.conf.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
^ permalink raw reply [nested|flat] 9+ messages in thread
* security
@ 2003-01-17 23:05 hubert baumgartner <hubert_baumgartner@mac.com>
0 siblings, 0 replies; 9+ messages in thread
From: hubert baumgartner @ 2003-01-17 23:05 UTC (permalink / raw)
To: pgsql-admin
hi guys ....
i have a few security concerns about postgres database and would like
to know if there is a possibility to compile postgres a way he only
accepts password athentication , and ignores the pg_hba.conf file ....
any ideas ?
I hope to get an answer
lg
_________________________________________________
| Hubert Baumgartner
|_________________________________________________
| Strozzigasse 6-8
| 1080 Wien
| Tel.: +43/699/11641011
| email: hubert_baumgartner@mac.com
| hubert.baumgartner@stuwo.at
| bert.b@gmx.at
| homepage:
| http://homepage.mac.com/hubert_baumgartner
| http://www.macaustria.at
|_________________________________________________
If electricity comes from electrons, does morality come from morons?
^ permalink raw reply [nested|flat] 9+ messages in thread
* security
@ 2003-01-17 23:16 hubert baumgartner <hubert_baumgartner@mac.com>
2003-01-18 03:33 ` Re: security Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 9+ messages in thread
From: hubert baumgartner @ 2003-01-17 23:16 UTC (permalink / raw)
To: pgsql-admin
hi guys ....
i have a few security concerns about postgres database and would like
to know if there is a possibility to compile postgres a way he only
accepts password athentication , and ignores the pg_hba.conf file ....
any ideas ?
I hope to get an answer
lg
hubert
***DISclaimer***
hiermit distanziere ich mich und alle anderen die mich kennen oder
auch nicht von den von mir oder von anderen gemachten aussagen.
sollte irgend jemand anstoss an meinen aeusserungen nehmen, nehme ich
sofort alles zu zurueck und behaupte das gegenteil.
selbstverstaendlich habe ich keine eigene meinung und aeussere diese
auch nicht.
(c) by hubertba- all rights violated
***DISclaimer***
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: security
2003-01-17 23:16 security hubert baumgartner <hubert_baumgartner@mac.com>
@ 2003-01-18 03:33 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 9+ messages in thread
From: Tom Lane @ 2003-01-18 03:33 UTC (permalink / raw)
To: hubert baumgartner <hubert_baumgartner@mac.com>; +Cc: pgsql-admin
hubert baumgartner <hubert_baumgartner@mac.com> writes:
> i have a few security concerns about postgres database and would like
> to know if there is a possibility to compile postgres a way he only
> accepts password athentication , and ignores the pg_hba.conf file ....
> any ideas ?
I suppose you could rip all the auth methods except password out of the
code ... but I cannot imagine a more complete waste of time. If someone
has write access to the pg_hba.conf file, then they have already broken
into your postgres account or your root account. The game is over;
there isn't anything in your database that they can't read, change, or
delete. Even more to the point, there's nothing stopping them from
changing all the database passwords. What makes you think that password
authentication is one iota more secure than any other method, under
such conditions?
regards, tom lane
^ permalink raw reply [nested|flat] 9+ messages in thread
* SECURITY
@ 2003-05-21 18:18 ivan <ivan@psycho.pl>
2003-05-22 06:39 ` Re: SECURITY Sean Chittenden <sean@chittenden.org>
2003-05-22 07:08 ` Re: SECURITY A.Bhuvaneswaran <bhuvan@symonds.net>
2003-05-22 12:31 ` Re: SECURITY Bruno Wolff III <bruno@wolff.to>
0 siblings, 3 replies; 9+ messages in thread
From: ivan @ 2003-05-21 18:18 UTC (permalink / raw)
To: pgsql-admin
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 ?
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: SECURITY
2003-05-21 18:18 SECURITY ivan <ivan@psycho.pl>
@ 2003-05-22 06:39 ` Sean Chittenden <sean@chittenden.org>
2 siblings, 0 replies; 9+ messages in thread
From: Sean Chittenden @ 2003-05-22 06:39 UTC (permalink / raw)
To: ivan <ivan@psycho.pl>; +Cc: pgsql-admin
> 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
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: SECURITY
2003-05-21 18:18 SECURITY ivan <ivan@psycho.pl>
@ 2003-05-22 07:08 ` A.Bhuvaneswaran <bhuvan@symonds.net>
2 siblings, 0 replies; 9+ messages in thread
From: A.Bhuvaneswaran @ 2003-05-22 07:08 UTC (permalink / raw)
To: ivan <ivan@psycho.pl>; +Cc: pgsql-admin
> 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 ?
It need not be a bug. As and when you create a database, you are able to
revoke permissions to the database from other users. If you do that, no
other users would be able to access the database. Refer REVOKE command for
details.
regards,
bhuvaneswaran
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: SECURITY
2003-05-21 18:18 SECURITY ivan <ivan@psycho.pl>
@ 2003-05-22 12:31 ` Bruno Wolff III <bruno@wolff.to>
2 siblings, 0 replies; 9+ messages in thread
From: Bruno Wolff III @ 2003-05-22 12:31 UTC (permalink / raw)
To: ivan <ivan@psycho.pl>; +Cc: pgsql-admin
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;
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2003-05-22 12:31 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-15 08:34 security sk.list@comset.net
2000-01-16 20:13 ` Peter Eisentraut <peter_e@gmx.net>
2003-01-17 23:05 security hubert baumgartner <hubert_baumgartner@mac.com>
2003-01-17 23:16 security hubert baumgartner <hubert_baumgartner@mac.com>
2003-01-18 03:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-05-21 18:18 SECURITY ivan <ivan@psycho.pl>
2003-05-22 06:39 ` Re: SECURITY Sean Chittenden <sean@chittenden.org>
2003-05-22 07:08 ` Re: SECURITY A.Bhuvaneswaran <bhuvan@symonds.net>
2003-05-22 12:31 ` Re: SECURITY Bruno Wolff III <bruno@wolff.to>
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