From: Bruno Wolff III <bruno@wolff.to>
To: Graham Wilson <grahamwilsonca@yahoo.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: Confused about user permissions and pg_hba.conf
Date: Tue, 19 Nov 2002 08:07:58 -0600
Message-ID: <20021119140758.GB22876@wolff.to> (raw)
In-Reply-To: <20021119014134.82474.qmail@web14407.mail.yahoo.com>
References: <20021119014134.82474.qmail@web14407.mail.yahoo.com>
On Mon, Nov 18, 2002 at 20:41:34 -0500,
Graham Wilson <grahamwilsonca@yahoo.ca> wrote:
> Hi all,
>
> I have searched through the archives but after 2 days
> of trying, I still cannot figure out how to get
> postgres permissions to work the way I need them to.
>
> What I am trying to do is setup Postgresql on a Linux
> server so that users can connect from anywhere on the
> subnet and edit tables that they themselves have
> created. I then want other users to be able to access
> these tables as a 'guest' using the password
> 'readonly'.
>
> At the moment, I have,
>
> host all xxx.x.242.0 255.255.255.0 ident sameuser
I believe you need to upgrade to at least 7.2 so that you can have
separate lines for each user. Then what you do is first check for
any database user guest and use crpyt authentication (or if you trust
everyone on those hosts just use trust authentication). Then use
another record specifying any database, sameuser and ident authentication.
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: bruno@wolff.to, grahamwilsonca@yahoo.ca
Subject: Re: Confused about user permissions and pg_hba.conf
In-Reply-To: <20021119140758.GB22876@wolff.to>
References: <20021119014134.82474.qmail@web14407.mail.yahoo.com> <20021119140758.GB22876@wolff.to>
* 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