Re: Alternate database locations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tauren Mills <tauren(at)servlets(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Alternate database locations
Date: 2001-06-04 14:15:04
Message-ID: 29453.991664104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Kwok Shing 2001-06-04 15:39:43 Re: System hangs when Insert/Update
Previous Message Peter Eisentraut 2001-06-04 10:11:52 Re: Alternate database locations

Browse pgsql-general by date

  From Date Subject
Next Message Francesco Casadei 2001-06-04 14:15:15 Re: PostgreSQL security concerns
Previous Message will trillich 2001-06-04 14:11:25 Re: Current value of a sequence?