Re: initdb error: "could not identify current directory" (or, what have i done now?) - Mailing list pgsql-general

From Tom Lane
Subject Re: initdb error: "could not identify current directory" (or, what have i done now?)
Date
Msg-id 15966.1102117748@sss.pgh.pa.us
Whole thread Raw
In response to initdb error: "could not identify current directory" (or, what have i done now?)  (OpenMacNews <pgsql-general.20.openmacnews@spamgourmet.com>)
Responses Re: initdb error: "could not identify current directory" (or,  (OpenMacNews <pgsql-general.20.openmacnews@spamgourmet.com>)
[SOLVED] Re: initdb error: "could not identify current directory" (or, what have i done now?)  (OpenMacNews <pgsql-general.20.openmacnews@spamgourmet.com>)
List pgsql-general
OpenMacNews <pgsql-general.20.openmacnews@spamgourmet.com> writes:
>> su testuser
> % /usr/local/pgsql/bin/initdb --pgdata=/var/data/pgsql --username=testuser
>     could not identify current directory: Permission denied

What directory are you in when you give this command?  (AFAIR su doesn't
change directory ... you might be better off with su - testuser ...)

            regards, tom lane

pgsql-general by date:

Previous
From: OpenMacNews
Date:
Subject: initdb error: "could not identify current directory" (or, what have i done now?)
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Dont let those int8's drive you mad!!