BUG #6488: Installation instructions slightly wrong. - Mailing list pgsql-bugs

From linehanp@tcd.ie
Subject BUG #6488: Installation instructions slightly wrong.
Date
Msg-id E1S1Efo-000577-8u@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6488: Installation instructions slightly wrong.
List pgsql-bugs
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:=20=20=20=20=20=20=20=20


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=20
=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=20
information, please don't hesitate
to contact me.

Rgs,

Paul...

pgsql-bugs by date:

Previous
From: rikard.pavelic@zg.htnet.hr
Date:
Subject: BUG #6489: Alter table with composite type/table
Next
From: Tom Lane
Date:
Subject: Re: BUG #6488: Installation instructions slightly wrong.