pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leland F. Jackson, CPA <smvfp@mail.smvfp.com>
To: pgsql-admin@postgresql.org
To: Zhiqiang Feng <zf2@st-andrews.ac.uk>
Subject: Re: Stalled post to pgsql-admin
Date: Mon, 20 Jan 2003 21:18:26 -0600
Message-ID: <004a01c2c0fb$c3529a10$7401a8c0@jackson> (raw)
References: <4.1.20030120134947.00a714e0@purds.st-andrews.ac.uk>

Hi Zhiqiang,

You might take a look at the following link:

http://www.tek-tips.com/viewthread.cfm?SQID=449717&SPID=699&page=1

After you have postgres user properly setup, you can use pgaccess to
configure other users.

LelandJ


----- Original Message -----
From: "Zhiqiang Feng" <zf2@st-andrews.ac.uk>
To: <pgsql-admin@postgresql.org>
Sent: Monday, January 20, 2003 7:52 AM
Subject: Re: [ADMIN] Stalled post to pgsql-admin


>
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly




view thread (5+ messages)  latest in thread

Message-ID: <004a01c2c0fb$c3529a10$7401a8c0@jackson>
Permalink:  ../004a01c2c0fb$c3529a10$7401a8c0@jackson/
Also on:    postgresql.org/message-id/004a01c2c0fb$c3529a10$7401a8c0@jackson

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: smvfp@mail.smvfp.com, zf2@st-andrews.ac.uk
  Subject: Re: Stalled post to pgsql-admin
  In-Reply-To: <004a01c2c0fb$c3529a10$7401a8c0@jackson>
  References: <4.1.20030120134947.00a714e0@purds.st-andrews.ac.uk> <004a01c2c0fb$c3529a10$7401a8c0@jackson>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox