pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #6488: Installation instructions slightly wrong. 2+ messages / 2 participants [nested] [flat]
* BUG #6488: Installation instructions slightly wrong. @ 2012-02-25 10:16 linehanp@tcd.ie 0 siblings, 1 reply; 2+ messages in thread From: linehanp@tcd.ie @ 2012-02-25 10:16 UTC (permalink / raw) To: 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: 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 ========================== Should you require any further information, please don't hesitate to contact me. Rgs, Paul... ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6488: Installation instructions slightly wrong. @ 2012-02-26 22:32 Tom Lane <tgl@sss.pgh.pa.us> parent: linehanp@tcd.ie 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2012-02-26 22:32 UTC (permalink / raw) To: linehanp@tcd.ie; +Cc: pgsql-bugs linehanp@tcd.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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-02-26 22:32 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-02-25 10:16 BUG #6488: Installation instructions slightly wrong. linehanp@tcd.ie 2012-02-26 22:32 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox