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 2C17D3A5EDB for ; Thu, 13 Jan 2005 03:08:31 +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 22916-03 for ; Thu, 13 Jan 2005 03:08:16 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 1965D3A5EE3 for ; Thu, 13 Jan 2005 03:08:19 +0000 (GMT) Received: from hosting.commandprompt.com (hosting.commandprompt.com [192.168.1.101]) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j0D38IQ1004850; Wed, 12 Jan 2005 19:08:18 -0800 Date: Wed, 12 Jan 2005 19:08:17 -0800 (PST) From: "Joshua D. Drake" To: "Goulet, Dick" Cc: Peter Eisentraut , "Tomeh, Husam" , PgSQL ADMIN Subject: Re: Installing PostgreSQL as "postgress" versus "root" In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650207AAD2@25exch1.vicorpower.vicr.com> Message-ID: References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD2@25exch1.vicorpower.vicr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/97 X-Sequence-Number: 15956 > Peter, > > You may well be on the development team, but you are wrong for > one very important reason. If the Postgresql executables are owned by > root they execute with the priviledges of root. Thereby any local > created extensions like database_size also execute with the priviledges > of root. Wouldn't it be wonderful if some disgruntled person or a > hacker wrote & installed a package that did an rm -fr /?? Install > Postgres in it's own account where it's priviledges to destroy the > server are restricted. Anything else is begging for trouble. Actually this is not true at any level. In order for the file to execute as root it must be setuid root, the ownership is irrelevant at that point. If what you said were true, then almost every binary on a Linux system would execute as root. Sincerely, Joshua D. Drake > > > Dick Goulet > Senior Oracle DBA > Oracle Certified 8i DBA > -----Original Message----- > From: Peter Eisentraut [mailto:peter_e@gmx.net] > Sent: Wednesday, January 12, 2005 7:01 PM > To: Tomeh, Husam > Cc: PgSQL ADMIN > Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" > Debate! > > Tomeh, Husam wrote: >> I've seen book that prefer installing PostgreSQL as root and another >> one recommends otherwise by first creating a postgres account and >> then installing it as postgres. In the Oracle world, you don't use >> root to install the software. What is the best practice as far as >> PostgreSQL goes? > > The current recommendation, which is reflected in the installation > instructions, is to install the software as root and to use the > postgres user for the database files. The advice seen elsewhere in > this thread to use the postgres user also for the software files is > wrong. > > -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead