From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Tauren Mills <tauren@servlets.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Alternate database locations
Date: Mon, 04 Jun 2001 10:15:04 -0400
Message-ID: <29453.991664104@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.30.0106041205220.768-100000@peter.localdomain>
References: <Pine.LNX.4.30.0106041205220.768-100000@peter.localdomain>
Peter Eisentraut <peter_e@gmx.net> writes:
>> However, this page indicates that there are security risks in doing this.
>> What are those risks? If I prevent users other than the superuser
>> "postgres" from being able to create and drop databases, are there any
>> security risks?
> No. The risks are related to the fact that non-superusers can also be
> allowed to create databases.
If the user's DB area is in his home directory, then he can presumably
rename it, leading to nasty problems when operations like CHECKPOINT try
to write to files in it. At the very least you'd have potential for
denial of service to all the other users.
>> Lastly, I've even tried creating a database normally, then moving it to the
>> user's area and creating a symlink to it. But this didn't seem to work.
> It should, since that is what the "official" mechanisms do as well.
Yes, I'd have thought that would work. Define "didn't seem to work",
please.
regards, tom lane
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: tgl@sss.pgh.pa.us, peter_e@gmx.net, tauren@servlets.net
Subject: Re: Alternate database locations
In-Reply-To: <29453.991664104@sss.pgh.pa.us>
References: <Pine.LNX.4.30.0106041205220.768-100000@peter.localdomain> <29453.991664104@sss.pgh.pa.us>
* 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