pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Callan <acallan1@nd.edu>
To: pgsql-admin@postgresql.org
Subject: initdb problem
Date: Thu, 18 Sep 2003 04:01:41 -0500
Message-ID: <1063875701.3f6974755ccd8@webmail.nd.edu> (raw)

My installation of PostgreSQL was created when i installed a GIS application but it does 
not appear to have a data cluster specified so I did the following:

[Computer:local/pgsql/bin] andrewcallan% ./initdb -D /usr/local/pgsql/data
         The files belonging to this database system will be owned by user "andrewcallan".
         This user must also own the server process.

          Fixing permissions on existing directory /usr/local/pgsql/data... chmod: /usr/local/
          pgsql/data: Operation not permitted

          initdb failed.

Also just for kicks I tried to startup to server since i don't know exactly what the auto-
install did and did not do and this is what happened:

[Computer:local/pgsql/bin] andrewcallan% ./postmaster -D /usr/local/pgsql/data
           FATAL 1:  data directory /usr/local/pgsql/data has group or world access;    
           permissions should be u=rwx (0700)

  --I created the /data directory just with a mkdir as the root b/c at the time i did not 
know if initdb would create it if it didn't exist, its my understanding initdb will change the 
permissions as needed so this problem should go away....

I am completely new to PostgreSQL and have spent the last couple weeks playing with 
installing both it and mySQL to try to link some data to the GIS application so I really do 
not know what am I doing and this could be a really stupid mistake, please be gentle.... 
Many thanks for your assistance.

-- 
Andy Callan
St. Thomas More College
Rm M112
Mounts Bay Rd.
Crawley, WA 6009
IM: CALid05
www.nd.edu/~acallan1





view thread (26+ messages)  latest in thread

Message-ID: <1063875701.3f6974755ccd8@webmail.nd.edu>
Permalink:  ../1063875701.3f6974755ccd8@webmail.nd.edu/
Also on:    postgresql.org/message-id/1063875701.3f6974755ccd8@webmail.nd.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: acallan1@nd.edu
  Subject: Re: initdb problem
  In-Reply-To: <1063875701.3f6974755ccd8@webmail.nd.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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