Skip site navigation (1) Skip section navigation (2)

Re: Installation docs wrong?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Installation docs wrong?
Date: 2005-03-25 04:52:06
Message-ID: 20050325045206.GA53686@winnie.fuhr.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On Fri, Mar 25, 2005 at 12:30:46PM +0800, Christopher Kings-Lynne wrote:

> root# mkdir /usr/local/pgsql/data
> root# chown postgres /usr/local/pgsql/data
> root# su postgres
> postgres$ initdb -D /usr/local/pgsql/data
> 
> However, initdb will fail in this case, since the /usr/local/pgsql dir 
> is NOT owned by postgres.  (This came up on IRC helping someone)

This should work.  What's the exact error?  Have you check the
permissions on all parent directories?  What's the output of the
following command?

ls -ld / /usr /usr/local /usr/local/pgsql /usr/local/pgsql/data

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

pgsql-hackers by date

Next:From: John HansenDate: 2005-03-25 05:34:41
Subject: Re: Patch for collation using ICU
Previous:From: Christopher Kings-LynneDate: 2005-03-25 04:38:57
Subject: Re: Installation docs wrong?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group