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