Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f54EFQE47138 for ; Mon, 4 Jun 2001 10:15:26 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f54EF4R29456; Mon, 4 Jun 2001 10:15:04 -0400 (EDT) To: Peter Eisentraut cc: Tauren Mills , pgsql-admin@postgresql.org Subject: Re: Alternate database locations In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Mon, 04 Jun 2001 12:11:52 +0200" Date: Mon, 04 Jun 2001 10:15:04 -0400 Message-ID: <29453.991664104@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200106/10 X-Sequence-Number: 1546 Peter Eisentraut 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