From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stefan Huber <looseleaf@gmx.net>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Permission Denied When i am Trying to take Backup
Date: Fri, 12 Oct 2001 13:27:04 -0400
Message-ID: <27295.1002907624@sss.pgh.pa.us> (raw)
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>
Stefan Huber <looseleaf@gmx.net> 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
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, looseleaf@gmx.net, peter_e@gmx.net
Subject: Re: Permission Denied When i am Trying to take Backup
In-Reply-To: <27295.1002907624@sss.pgh.pa.us>
References: <5.1.0.14.0.20011010142149.00b0bf90@pop.gmx.net> <5.1.0.14.0.20011012135053.024f2c10@pop.gmx.net> <27295.1002907624@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