Re: BUG #6488: Installation instructions slightly wrong.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: linehanp(at)tcd(dot)ie
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6488: Installation instructions slightly wrong.
Date: 2012-02-26 22:32:53
Message-ID: 17386.1330295573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

linehanp(at)tcd(dot)ie writes:
> The short version of the instructions say

> ========================
> 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
> =================================

> 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
> ==========================
> FATAL: data directory "/usr/local/pgsql/data" has group or world access
> ==========================

You more than likely will have to adjust the permissions on the data
directory when following this recipe, but I don't see how exiting from
the first "su" there would fix it. All it's likely to do is add extra
steps because you no longer have root permissions to do the second "su"
with.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message anisimovt 2012-02-27 11:39:55 BUG #6490: Not checking column existence in sub query
Previous Message rikard.pavelic 2012-02-25 13:23:18 BUG #6489: Alter table with composite type/table