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

Re: How to give permission to others on data directory

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Amit Khare <skamit2000(at)yahoo(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to give permission to others on data directory
Date: 2002-03-30 22:50:21
Message-ID: Pine.LNX.4.30.0203301749260.683-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackers
Amit Khare writes:

> (1) Actually we are doing project on PostgreSQL in group of two. We installed individual copy of PostgreSQL into our group directory.
> (2) When I created data directory and ran "initdb" it makes me( takes my login name ) as the owner of data directory.
> (3) The problem is that now my partner cannot start the postmaster since he does not have right on the data directory. Further one cannot set right on the data directory more than 700 .
> (4) For time being we hacked the postmaster.c and commented the line starting from 318 which actually test the permission on data directory. Then my partner was able to run the postmaster since now I gave him rights(770) on the data directory(But changed rights on postgresql.conf file to 744).
>
> (5) Is there a clean way by which my partner can start postmaster on data directory created by me.

Create a separate user for the server and give yourself and your partner
access to it.

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net


In response to

Responses

pgsql-hackers by date

Next:From: Neil ConwayDate: 2002-03-30 23:53:46
Subject: rules and default values
Previous:From: Greg CopelandDate: 2002-03-30 20:55:13
Subject: Re: Posix AIO in new Red Hat Linux

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