Can t finish initdb in a postgresql-7.3.2 during first install. Reproducible: Always Steps to Reproduce: 1. emerge postgres 2. Change /etc/passwd in postgres from /bin/false to /bin/bash 3. ebuild /var/db/pkg/dev-db/postgresql-7.3.2/postgresql-7.3.2.ebuild config Actual Results: After step 3 receiving the message: initializing pg_shadow... /usr/bin/initdb: line 628: cannot create temp file for here document: Permission denied initdb failed. The problem is due no access to user postgres in /tmp directory, as as the ebuild....config run a sudo - postgres ... I resolved temporally including user postgres at group user and taking out after initdb, but I don t believe that is a good final solution.
Shouldn't everyone have write access to /tmp?
works here