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 ACD983A599E for ; Thu, 13 Jan 2005 18:16:43 +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 80675-03 for ; Thu, 13 Jan 2005 18:16:33 +0000 (GMT) Received: from 9.hellooperator.net (cpc3-cdif2-3-0-cust202.cdif.cable.ntl.com [81.103.32.202]) by svr1.postgresql.org (Postfix) with ESMTP id 4002D3A4DF3 for ; Thu, 13 Jan 2005 18:16:33 +0000 (GMT) Received: from rasputin by 9.hellooperator.net with local (Exim 4.43) id 1Cp9WK-0006kK-3F; Thu, 13 Jan 2005 18:16:32 +0000 Date: Thu, 13 Jan 2005 18:16:32 +0000 From: Dick Davies To: Dawid Kuroczko Cc: PostgreSQL Admin Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate! Message-ID: <20050113181631.GQ2717@lb.tenfour> Reply-To: Dick Davies References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD3@25exch1.vicorpower.vicr.com> <41E5FE80.8080402@commandprompt.com> <758d5e7f05011304065d7e56a0@mail.gmail.com> <20050113122041.GG2717@lb.tenfour> <758d5e7f050113044119890a53@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <758d5e7f050113044119890a53@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.728 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200501/115 X-Sequence-Number: 15974 * Dawid Kuroczko [0151 12:51]: > On Thu, 13 Jan 2005 12:20:41 +0000, Dick Davies > wrote: > > > But only if either setuid root or executed by root. Hey, on my > > > system even /bin/sh is owned by root; it would be funny of it > > > executed as root > > C'mon folks, the guy obviously made a booboo - no need to rub his > > nose in it... > > I apologize if it felt like it. Not really, i just thought the whole list would be joining in before long. > Anyway, I've been thinking about it a bit; > if pgsql files are owned by pgsql and some BAD user with too high > privileges (say, plperlU or other unrestricted access), she can modify > database files (like remove everything from data directory, etc.), and > it matters little if files are owned by root or postgres -- the database > data is owned by postgres. Surely plperlu runs as the postgres user, not root? (haven't got further than a few sequences yet, I'm an sql noob). Removing database files isn't the same as replacing system binaries. But you're right, psql (etc) in ~pgsql [which you have to do if you don't have privileges to install anywhere else] sounds pretty dumb to me - then all local users need to be able to read the database directories. So let's all stick with root installs and be happy :) -- 'That question was less stupid; though you asked it in a profoundly stupid way.' -- Prof. Farnsworth Rasputin :: Jack of All Trades - Master of Nuns