dbTalk Databases Forums  

New at this. Commissioning for the first time:

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss New at this. Commissioning for the first time: in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default New at this. Commissioning for the first time: - 01-12-2004 , 12:11 AM






Hi Everyone,

I'm brand new at this, and am trying to set up PostgreSQL for the very
first time. It looks like my installation of RH9 a few weeks ago has
installed the database proper, and now all I need to do is create a
few files and commission the application so that I can see "template1"
and proceed from there.

I had set up the directory...
/usr/local/pgsql/data

and then typed...
postmaster -D /usr/local/pgsql/data

and the shell reply is...
FATAL: data directory /usr/local/pgsql/data has group or world
access;
permissions should be u=rwx (0700)

Being new at Un*x as well, I only know a fair amount about how to
change permissions. Emacs says the directory currently has these
permissions on the directory:
drwxr-xr-x

What instructions should I issue in order to meet the requirement?
chmod [what?]

Thank you for any information that you can provide.

Reply With Quote
  #2  
Old   
Raghu
 
Posts: n/a

Default Re: New at this. Commissioning for the first time: - 01-14-2004 , 02:45 AM






sa92003 (AT) yahoo (DOT) com (Rob) wrote in message news:<6b5b067f.0401112211.2b926246 (AT) posting (DOT) google.com>...
Quote:
Hi Everyone,

I'm brand new at this, and am trying to set up PostgreSQL for the very
first time. It looks like my installation of RH9 a few weeks ago has
installed the database proper, and now all I need to do is create a
few files and commission the application so that I can see "template1"
and proceed from there.

I had set up the directory...
/usr/local/pgsql/data

and then typed...
postmaster -D /usr/local/pgsql/data

and the shell reply is...
FATAL: data directory /usr/local/pgsql/data has group or world
access;
permissions should be u=rwx (0700)

Being new at Un*x as well, I only know a fair amount about how to
change permissions. Emacs says the directory currently has these
permissions on the directory:
drwxr-xr-x

What instructions should I issue in order to meet the requirement?
chmod [what?]

Thank you for any information that you can provide.
Rob,
Unix user running the postmaster needs to own /usr/local/pgsql/data
directory.
Do the following : ( i assume that you have postgres unix user and
data directory exists)
1. chown postgres /usr/local/pgsql/data
2. su postgres
3. postmaster -D /usr/local/pgsql/data
4. pg_ctl status

Essentially make postgres user the owner of data directory and then
run postmaster as postgres.


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: New at this. Commissioning for the first time: - 01-18-2004 , 10:26 PM



sa92003 (AT) yahoo (DOT) com (Rob) writes:
Quote:
I had set up the directory...
/usr/local/pgsql/data

and then typed...
postmaster -D /usr/local/pgsql/data

and the shell reply is...
FATAL: data directory /usr/local/pgsql/data has group or world
access;
permissions should be u=rwx (0700)

Being new at Un*x as well, I only know a fair amount about how to
change permissions. Emacs says the directory currently has these
permissions on the directory:
drwxr-xr-x
What instructions should I issue in order to meet the requirement?
chmod [what?]
If you are familiar with octal notation you'd just do

chmod 700 /usr/local/pgsql/data

but a more symbolic way is

chmod go-rx /usr/local/pgsql/data

(which says to remove R and X permissions for Group and Other).

Note that you cannot start the postmaster on an empty data directory;
you have to run initdb first. Had you run initdb, it'd have fixed
the permissions for you, so really you can forget the above and just
do

initdb -D /usr/local/pgsql/data

then run the postmaster.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.