X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A68733A5F7A for ; Thu, 13 Jan 2005 21:47:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26790-08 for ; Thu, 13 Jan 2005 21:46:48 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 0111C3A5FD4 for ; Thu, 13 Jan 2005 21:44:35 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j0DLiYv02613; Thu, 13 Jan 2005 16:44:34 -0500 (EST) From: Bruce Momjian Message-Id: <200501132144.j0DLiYv02613@candle.pha.pa.us> Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate! In-Reply-To: <200501131313.39366.uwe@oss4u.com> To: "Uwe C. Schroeder" Date: Thu, 13 Jan 2005 16:44:34 -0500 (EST) Cc: PostgreSQL Admin X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/132 X-Sequence-Number: 15991 Uwe C. Schroeder wrote: [ PGP not available, raw data follows ] > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thursday 13 January 2005 10:52 am, Goulet, Dick wrote: > > Doug, > > > > OK, Assume that the binaries are installed under root, but a > > hacker cracks PostGres, what is to stop him/her from trashing all of the > > database files in the first place? Their not owned by root. Installing > > malware, whether it's actual code or destroying/defacing files causes > > similar if not identical problems. At least their restricted to the > > postgres user. And in my book the executables are of zero value whereas > > the data files, and their contained data, are of infinite value. So > > under your scheme we're protecting the least valuable part of the > > system at the expense of the most valuable. > > So where is the difference? If all executables AND the data is under the > postgres account - an intruder hacking the postgres account would still be > able to destroy your data. To me the difference is that if you your postgres account is hacked and you installed as root you can delete your /data and start over knowing the rest of your install is OK. If your binaries are owned by postgres, you have to reinstall too. Of course you might as well reinstall anyway but there is a difference in knowing the state of the non-/data files. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073