pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRead-only access to a database
3+ messages / 3 participants
[nested] [flat]
* Read-only access to a database
@ 2007-03-21 16:42 Morten W. Petersen <morten@nidelven-it.no>
0 siblings, 1 reply; 3+ messages in thread
From: Morten W. Petersen @ 2007-03-21 16:42 UTC (permalink / raw)
To: pgsql-admin
Hi,
I'd like to create a user that has read-only access to
a database.
I've read the docs and fumbled around a bit (even
tried to use phppgadmin) - but nothing works.
"CREATE USER username" is about as far as I've
gotten. Which other commands would I have to
use to enable read-only access to a database?
Thanks,
Morten
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Read-only access to a database
@ 2007-03-21 17:46 Brian A. Seklecki <bseklecki@collaborativefusion.com>
parent: Morten W. Petersen <morten@nidelven-it.no>
0 siblings, 1 reply; 3+ messages in thread
From: Brian A. Seklecki @ 2007-03-21 17:46 UTC (permalink / raw)
To: Morten W. Petersen <morten@nidelven-it.no>; +Cc: pgsql-admin
Wouldn't you just set read-only ACLs for that role on all of the objects
in the database in question?
~BAS
On Wed, 2007-03-21 at 17:42 +0100, Morten W. Petersen wrote:
> Hi,
>
> I'd like to create a user that has read-only access to
> a database.
>
> I've read the docs and fumbled around a bit (even
> tried to use phppgadmin) - but nothing works.
>
> "CREATE USER username" is about as far as I've
> gotten. Which other commands would I have to
> use to enable read-only access to a database?
>
> Thanks,
>
> Morten
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
--
Brian A. Seklecki <bseklecki@collaborativefusion.com>
Collaborative Fusion, Inc.
IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Read-only access to a database
@ 2007-03-21 18:33 Karthikeyan Sundaram <skarthi98@hotmail.com>
parent: Brian A. Seklecki <bseklecki@collaborativefusion.com>
0 siblings, 0 replies; 3+ messages in thread
From: Karthikeyan Sundaram @ 2007-03-21 18:33 UTC (permalink / raw)
To: bseklecki@collaborativefusion.com; morten@nidelven-it.no; +Cc: pgsql-admin
when you create a role, you can specify, nocreate option. Then when you
grant the tables to this user give only select privilege.
Regards
skarthi
>From: "Brian A. Seklecki" <bseklecki@collaborativefusion.com>
>To: "Morten W. Petersen" <morten@nidelven-it.no>
>CC: pgsql-admin@postgresql.org
>Subject: Re: [ADMIN] Read-only access to a database
>Date: Wed, 21 Mar 2007 13:46:53 -0400
>
>Wouldn't you just set read-only ACLs for that role on all of the objects
>in the database in question?
>
>~BAS
>
>On Wed, 2007-03-21 at 17:42 +0100, Morten W. Petersen wrote:
> > Hi,
> >
> > I'd like to create a user that has read-only access to
> > a database.
> >
> > I've read the docs and fumbled around a bit (even
> > tried to use phppgadmin) - but nothing works.
> >
> > "CREATE USER username" is about as far as I've
> > gotten. Which other commands would I have to
> > use to enable read-only access to a database?
> >
> > Thanks,
> >
> > Morten
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>--
>Brian A. Seklecki <bseklecki@collaborativefusion.com>
>Collaborative Fusion, Inc.
>
>
>
>
>IMPORTANT: This message contains confidential information and is intended
>only for the individual named. If the reader of this message is not an
>intended recipient (or the individual responsible for the delivery of this
>message to an intended recipient), please be advised that any re-use,
>dissemination, distribution or copying of this message is prohibited.
>Please notify the sender immediately by e-mail if you have received this
>e-mail by mistake and delete this e-mail from your system.
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: 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
_________________________________________________________________
ItÂ’s tax season, make sure to follow these few simple tips
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-03-21 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-21 16:42 Read-only access to a database Morten W. Petersen <morten@nidelven-it.no>
2007-03-21 17:46 ` Brian A. Seklecki <bseklecki@collaborativefusion.com>
2007-03-21 18:33 ` Karthikeyan Sundaram <skarthi98@hotmail.com>
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