hi,

ich will grad ein neues Groupware Programm testen. Dazu solle ich in
Postgres einen neuen Benutzer erstellen:

 
su - postgres -c "psql template1 -c 'CREATE USER amphora CREATEDB
CREATEUSER;'"

das geht, nun noch die DB:

su - amphora -c "createdb amphora2"

geht auch.  Nun soll ich daf�r sorgen, das der Apache, der unter
www-data l�uft, auf die amphora DB Zugriff hat. Dazu mu�te ich folgendes
hinzuf�gen:
---------------------------------------------------------------------
Edit /var/lib/pgsql/data/pg_hba.conf and add these lines in front of
other access control statements:

#TYPE DATABASE AUTH_TYPE ARGS
local amphora2 ident     amphora
---------------------------------------------------------------------
In pg_ident.conf, add:

# MAP    IDENT    PGUSERNAME
amphora  www-data  amphora
amphora  root  amphora
---------------------------------------------------------------------

Dann habe ich Postgresql neugestartet und wollte per:

su www-data -s /bin/bash -c 'psql amphora2 < amphora2.0.dump'

Die Daten in die DB spielen, aber ich erhalte eine Fehlermeldung:

debian:/home/amphora2/inst# su www-data -s /bin/bash -c 'psql amphora2 <
amphora2.0.dump'
psql: FATAL 1:  IDENT authentication failed for user "www-data"

Der Linux User Amphora, ist in der Gruppe www-data.

Ich wei� nicht weiter, wo liegt das Problem?

cu denny



----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an