[SOLVED] Re: initdb error: "could not identify current directory" (or, what have i done now?)

From: OpenMacNews <pgsql-general(dot)20(dot)openmacnews(at)spamgourmet(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: [SOLVED] Re: initdb error: "could not identify current directory" (or, what have i done now?)
Date: 2004-12-04 07:35:30
Message-ID: 1D8119D6D9A5333103BFDE1B@tiedgar.internal.presence-group.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi tom,

i think i got it ...

keeping in mind your question re: read perms, & reading this thread:

<http://groups.google.com/groups?hl=en&lr=&threadm=60b4un%24cqh%241%40dolphin.neosoft.com&rnum=2&prev=/groups%3Fq%3Dgetcwd%2520permissions%2520symlink%26hl%3Den%26lr%3D%26sa%3DN%26tab%3Dwg>

and noting there "suspicion would be that one of your mointpoints (like /usr)
has mangled permissions", it seems it's the mount point in the path of the
relevant symlink that needs the right perms.

for me that's, e.g., /Volumes/data

tho' i'd reported:

% ls -ald /var/data
lrwxr-xr-x 1 root wheel 27 /var/data -> /Volumes/data

its actually (apparently) the perms on the absolute dir path /Volumes/data that
matter ... to getcwd.

on my sys:

% ls -ald /Volumes/data
drwxr-x--x 12 openmac wheel 408 Nov 27 15:25 /Volumes/data/

the thread (above) mentioned changing perms to at least 555 on the mount point,
so i:

% chmod 755 /Volumes/data
% ls -ald /Volumes/data
drwxrwxr-x 12 openmac wheel 408 Nov 27 15:25 /Volumes/data/

and tried initdb again.

so far (!) it seems to run fine without the getced 'persmission denied' errors
from any directory.

i'll test this some more in the morn, and make sure i'm not deluding myself ...

if this *does* turn out to be the case, does it make sense to have the script
check perms up through the physical/path of the cwd and report with a more
specific/desciptive error if they're not at least 555 on the mount point?

thx & g'nite.

richard

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas F.O'Connell 2004-12-04 07:58:26 Re: Poor Performance with Distinct Subqueries with EXISTS and EXCEPT
Previous Message OpenMacNews 2004-12-04 06:54:48 Re: initdb error: "could not identify current directory" (or,