Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22465 - initb crash in postgresql-7.3.2 due no access in /tmp while initializing pg_shadow
Summary: initb crash in postgresql-7.3.2 due no access in /tmp while initializing pg_s...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-08 17:47 UTC by Castelão
Modified: 2007-09-22 23:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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