Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4158C475C14 for ; Mon, 20 Jan 2003 08:50:09 -0500 (EST) Received: from purds.st-andrews.ac.uk (purds.st-and.ac.uk [138.251.34.20]) by postgresql.org (Postfix) with ESMTP id 2BB9F475AD4 for ; Mon, 20 Jan 2003 08:50:08 -0500 (EST) Received: from ggpc-zf2 (ggpc-zf2-1 [138.251.87.63]) by purds.st-andrews.ac.uk (8.9.1a/8.9.1) with SMTP id NAA12161 for ; Mon, 20 Jan 2003 13:50:06 GMT Message-Id: <4.1.20030120134947.00a714e0@purds.st-andrews.ac.uk> X-Sender: zf2@purds.st-andrews.ac.uk X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Mon, 20 Jan 2003 13:52:16 +0000 To: pgsql-admin@postgresql.org From: Zhiqiang Feng Subject: Re: Stalled post to pgsql-admin In-Reply-To: <20030120121032.54B83475E52@postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-StAndrewsMailScanner: No virus detected X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/226 X-Sequence-Number: 7068 Hello all, I am new to postgreSQL. I have installed postgreSQL 7.1.3-2 on Linux 7.2. If I login as root (administrator) and change user as postgres I can create database on /usr/local/pgsql/data which I created and changed its owner as postgres. root# mkdir usr/local/pgsql/data root# chown postgres /usr/local/pgsql/data root# su postgres bash-2.3# initdb -D /usr/local/pgsql/data bash-2.3# postmaster -D /usr/local/pgsql/data > logfile 2 >&1 & bash-2.3# createdb testdb bash-2.3# psql testdb However, when I login as a normal linux user I cannot create database. So it is a user management problem. zf2linux# createdb mydb FATAL 1: user 'zf2linux' does not exist I have tried to create a user of zf2linux in postgreSQL but the error still occurs. If I try to change to postgres from zf1linux it asks for password. zf2linux# su postgres password: ****** incorrect password. My pg_hba.conf is left as the default format: local all trust host all 127.0.0.1 255.255.255.255 trust I must miss something before I allow other users to access the postgreSQL server and account. Could you please help me with the problem? Thanks for your attention and will sum. Geoff Dr. Zhiqiang Feng School of Geography & Geosciences Irving Building University of St Andrews St Andrews Fife KY16 9AL tel: 01334 463951 zf2@st-andrews.ac.uk