Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 407624A2A38 for ; Sat, 25 Feb 2012 06:16:35 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S1Eg2-0005kO-NP for pgsql-bugs@postgresql.org; Sat, 25 Feb 2012 10:16:34 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S1Efo-0006gn-V9 for pgsql-bugs@postgresql.org; Sat, 25 Feb 2012 10:16:17 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1S1Efo-000577-8u for pgsql-bugs@postgresql.org; Sat, 25 Feb 2012 10:16:16 +0000 Date: Sat, 25 Feb 2012 10:16:16 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6488: Installation instructions slightly wrong. To: pgsql-bugs@postgresql.org From: linehanp@tcd.ie X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/187 X-Sequence-Number: 32530 The following bug has been logged on the website: Bug reference: 6488 Logged by: Paul Linehan Email address: linehanp@tcd.ie PostgreSQL version: 9.1.2 Operating system: Linux (Ubuntu 10.04) Description: = The short version of the instructions say =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Short Version ./configure gmake su gmake install adduser postgres mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data su - postgres /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 & /usr/local/pgsql/bin/createdb test /usr/local/pgsql/bin/psql test =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D but, there should be an "exit" between the lines chown postgres /usr/local/pgsql/data su - postgres otherwise, the system gets confused with file permissions for the data directory and throws the error = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D FATAL: data directory "/usr/local/pgsql/data" has group or world access =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Should you require any further = information, please don't hesitate to contact me. Rgs, Paul...