Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22465

Summary: initb crash in postgresql-7.3.2 due no access in /tmp while initializing pg_shadow
Product: Gentoo Linux Reporter: Castelão <castelao>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Castelão 2003-06-08 17:47:39 UTC
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.
Comment 1 Andrew Cooks (RETIRED) gentoo-dev 2003-11-19 04:58:02 UTC
Shouldn't everyone have write access to /tmp?
Comment 2 Markus Nigbur (RETIRED) gentoo-dev 2003-11-19 06:37:36 UTC
works here