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 11E803A50C7 for ; Thu, 13 Jan 2005 08:27:57 +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 91016-06 for ; Thu, 13 Jan 2005 08:27:44 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 3CD673A4F21 for ; Thu, 13 Jan 2005 08:27:44 +0000 (GMT) Received: (qmail invoked by alias); 13 Jan 2005 08:27:43 -0000 Received: from dsl-213-023-249-025.arcor-ip.net (EHLO colt.pezone.net) (213.23.249.25) by mail.gmx.net (mp007) with SMTP; 13 Jan 2005 09:27:43 +0100 X-Authenticated: #495269 From: Peter Eisentraut To: "Tomeh, Husam" Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate! Date: Thu, 13 Jan 2005 09:27:41 +0100 User-Agent: KMail/1.7.1 Cc: "PgSQL ADMIN" References: <200501130100.32307.peter_e@gmx.net> In-Reply-To: <200501130100.32307.peter_e@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501130927.42130.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/104 X-Sequence-Number: 15963 I wrote: > 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. Those who dismiss this advice as my own imagination may want to check how other server packages are installed on their system. What user does sshd run under? Who owns /usr/sbin/sshd? What user does the MTA run under? Who owns the binaries? What user does Apache run under? Who owns the binaries? etc. On my system, the answer is sshd/postfix/www-data on the one side and root on the other. Therefore it is consistent to use postgres and root for PostgreSQL. If your system uses a different distribution of users, you may want to adjust the PostgreSQL installation accordingly. But note that this voids your warranty because it is not covered by the installation instructions. :) -- Peter Eisentraut http://developer.postgresql.org/~petere/