X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EDCF2D1B4E1 for ; Sat, 18 Oct 2003 21:31:19 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 53862-05 for ; Sat, 18 Oct 2003 18:30:51 -0300 (ADT) Received: from my.endian.it (unknown [62.146.87.34]) by svr1.postgresql.org (Postfix) with ESMTP id 27A1CD1B4E3 for ; Sat, 18 Oct 2003 18:30:33 -0300 (ADT) Received: from [192.168.1.2] (host239-104.pool80181.interbusiness.it [80.181.104.239]) (authenticated) by my.endian.it (8.11.6/8.11.6) with ESMTP id h9ILrW122202; Sat, 18 Oct 2003 23:53:32 +0200 Subject: Re: postgres installed via rpms -can't run postmaster or From: Mailing List To: "Eric M. Wulff" Cc: pgsql-admin@postgresql.org In-Reply-To: <1066508130.2275.89.camel@ewulff> References: <1066508130.2275.89.camel@ewulff> Content-Type: text/plain Organization: Message-Id: <1066512606.1986.27.camel@linuxbox> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 18 Oct 2003 23:30:06 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/218 X-Sequence-Number: 10779 On Sat, 2003-10-18 at 22:15, Eric M. Wulff wrote: > This is very helpful. My next problem is setting up a db. createdb fails... > > "psql: FATAL: user "blah" does not exist > createdb: database creation failed" > > The user is either myself or root. Of course, doesn't like root. How > do I get psql to recognize me as a user. As root become the user postgres by giving: su - postgres Now create a postgres user named after your normal OS user account (blah I guess?): createuser blah (createuser is a postgres command). If you answer yes to the question whether the new user should be able to create DBs your done. Now as OS user blah you can do a createdb. Bye, Chris.