OpenMacNews <pgsql-general(dot)20(dot)openmacnews(at)spamgourmet(dot)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