pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
7.3 and user permissions
2+ messages / 2 participants
[nested] [flat]

* 7.3 and user permissions
@ 2005-07-13 15:42 Chris Hoover <revoohc@gmail.com>
  2005-07-13 16:49 ` Re: 7.3 and user permissions Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Chris Hoover @ 2005-07-13 15:42 UTC (permalink / raw)
  To: pgsql-admin

I'm having a strange issue.  I just created a new user with createdb
and createuser permissions.  The user only has permissions to view the
data in one database.  However, when I login to any db as him, I am
able to select data from tables that he has no select permisisons on. 
The user is not in any groups.

Does anyone know what is going on, or something I'm over looking.  The
tables are in the public schema and a few others.

Also, I would really prefer that this user only have access to his one
db and not able to see anything in the other db's.  Is this possible?

Thanks,

Chris
PG 7.3.4 (I know, we're working on a plan to go to 8)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: 7.3 and user permissions
  2005-07-13 15:42 7.3 and user permissions Chris Hoover <revoohc@gmail.com>
@ 2005-07-13 16:49 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2005-07-13 16:49 UTC (permalink / raw)
  To: Chris Hoover <revoohc@gmail.com>; +Cc: pgsql-admin

Chris Hoover <revoohc@gmail.com> writes:
> I'm having a strange issue.  I just created a new user with createdb
> and createuser permissions.  The user only has permissions to view the
> data in one database.  However, when I login to any db as him, I am
> able to select data from tables that he has no select permisisons on. 

"createuser" actually means "superuser" ... does that make it clearer?

PG 8.1 will have a privilege level that allows creation of users without
full superuserdom, but no existing release does.

> Also, I would really prefer that this user only have access to his one
> db and not able to see anything in the other db's.  Is this possible?

Database connection privileges are controlled by pg_hba.conf; you could
adjust that file to allow this user access to only his own database.
Better take away his superuser rights first though, else he could undo
the change if he chose to.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-07-13 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13 15:42 7.3 and user permissions Chris Hoover <revoohc@gmail.com>
2005-07-13 16:49 ` Tom Lane <tgl@sss.pgh.pa.us>

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