Jeanne Louize Emygdio <jeanne.emygdio@gmail.com> writes:
> initializing pg_shadow... ./initdb: line 662: cannot create temp file for
> here document: Permiss=E3o negada
/tmp not world writable, perhaps? Most shells try to put here-documents
into /tmp.
If Conectiva has SELinux, you might also be looking at a SELinux
policy problem.
regards, tom lane