Received: from earth.hub.org (sepick.org [64.49.215.10] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9T3smP24840 for ; Sun, 28 Oct 2001 22:54:48 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.pgh.pa.us ([192.204.191.242]) by mail1.hub.org (8.11.3/8.11.4) with ESMTP id f9CHRYX21090 for ; Fri, 12 Oct 2001 13:27:34 -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.4/8.11.4) with ESMTP id f9CHR4I27298; Fri, 12 Oct 2001 13:27:04 -0400 (EDT) To: Stefan Huber cc: Peter Eisentraut , pgsql-admin@postgresql.org Subject: Re: Permission Denied When i am Trying to take Backup In-reply-to: <5.1.0.14.0.20011012135053.024f2c10@pop.gmx.net> References: <5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net> <5.1.0.14.0.20011012135053.024f2c10@pop.gmx.net> Comments: In-reply-to Stefan Huber message dated "Fri, 12 Oct 2001 13:56:14 +0200" Date: Fri, 12 Oct 2001 13:27:04 -0400 Message-ID: <27295.1002907624@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200110/239 X-Sequence-Number: 2483 Stefan Huber writes: > Well, this might be true, if you are on a system, where more than one > humans are operating. Or are there some other reasons behind this philosophy? The idea is that the executables shouldn't be writable by the postgres user. That way, even if some db user manages to break into your database superuser account, the amount of damage he can do is limited. This has got nothing to do with whether your server system has other people on it: as long as someone can connect as superuser, they can cause the backend to scribble on any file that's writable by postgres. $PGDATA and the files and directories under it need to be owned/writable by the postgres user, but there's no reason for the rest of the installation (bin, lib, share, etc) to be writable by the postgres user. So doing "make install" as root and "initdb" as postgres sets you up more securely than doing the install as postgres. regards, tom lane