Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BD205475452 for ; Wed, 7 Aug 2002 19:32:15 -0400 (EDT) Received: from quartzo.cirp.usp.br (quartzo.cirp.usp.br [143.107.200.45]) by postgresql.org (Postfix) with ESMTP id C96F8475451 for ; Wed, 7 Aug 2002 19:32:13 -0400 (EDT) Received: from cirp.usp.br (granito.cirp.usp.br [143.107.200.102]) by quartzo.cirp.usp.br (8.11.6/8.11.6) with ESMTP id g77NeA306419 for ; Wed, 7 Aug 2002 20:40:10 -0300 Message-ID: <3D51AE8D.1040802@cirp.usp.br> Date: Wed, 07 Aug 2002 20:34:37 -0300 From: Ali Faiez Taha User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0rc2) Gecko/20020513 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: problems Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/72 X-Sequence-Number: 5187 Dear Sir. I'm using one FreeBSD 4.6 with PostgreSQL 7.2.1_1, apache2 and php4-4.2.1_1 . The pgsql is running ok, but when the user pgsql try to create a database, the error message is: > createdb example ERROR: CREATE DATABASE: permission denied createdb: database creation failed the directory structure is: drwxr-xr-x 4 pgsql pgsql 512 Aug 6 19:50 . drwxr-xr-x 29 root wheel 1024 Aug 6 16:45 .. -rw-r--r-- 1 pgsql pgsql 323 Jun 21 18:40 .cshrc -rw-r--r-- 1 pgsql pgsql 403 Jun 21 18:40 .profile -rw------- 1 pgsql pgsql 2989 Aug 7 18:11 .psql_history drwxr-xr-x 2 pgsql pgsql 512 Aug 6 19:53 Backups -rw-r--r-- 1 pgsql pgsql 19013 Aug 6 19:10 backup.dbcurso drwx------ 6 pgsql pgsql 512 Aug 7 20:08 data -rwxrw-r-- 1 pgsql pgsql 323 Jun 21 18:40 dot.cshrc.dist -rwxrw-r-- 1 pgsql pgsql 403 Jun 21 18:40 dot.profile.dist -rw-r--r-- 1 pgsql pgsql 2998 Jun 21 18:40 post-install-notes the data dir structure is: drwx------ 6 pgsql pgsql 512 Aug 7 20:08 . drwxr-xr-x 4 pgsql pgsql 512 Aug 6 19:50 .. -rw------- 1 pgsql pgsql 4 Aug 6 14:08 PG_VERSION drwx------ 6 pgsql pgsql 512 Aug 6 19:05 base drwx------ 2 pgsql pgsql 512 Aug 7 20:21 global -rw-r--r-- 1 pgsql pgsql 20 Aug 7 11:56 passwords -rw-r--r-- 1 pgsql pgsql 0 Aug 7 11:56 passwords.bk drwx------ 2 pgsql pgsql 512 Aug 6 14:08 pg_clog -rw------- 1 pgsql pgsql 10113 Aug 7 20:08 pg_hba.conf -rw------- 1 pgsql pgsql 1250 Aug 6 14:08 pg_ident.conf drwx------ 2 pgsql pgsql 512 Aug 6 14:08 pg_xlog -rw------- 1 pgsql pgsql 3847 Aug 7 17:55 postgresql.conf -rw------- 1 pgsql pgsql 26 Aug 7 20:08 postmaster.opts -rw------- 1 pgsql pgsql 46 Aug 7 20:08 postmaster.pid The file pg_hba.conf (last 4 lines) is: local all trust host all 127.0.0.1 255.255.255.255 trust host all X.Y.Z.W 255.255.255.0 password host database X.Y.Z.S 255.255.255.0 crypt What I need to solve this problem ? Thanks.