pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: bramhe manoj <manoj_bramhe@yahoo.com>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: database access queries
Date: Wed, 28 Sep 2005 16:32:28 +0530
Message-ID: <021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh> (raw)
References: <20050928102445.52912.qmail@web51607.mail.yahoo.com>

----- Original Message ----- 
From: "bramhe manoj" <manoj_bramhe@yahoo.com>
To: <pgsql-admin@postgresql.org>
Sent: Wednesday, September 28, 2005 3:54 PM
Subject: [ADMIN] database access queries


> hi ,
>
> we are working as linux administrators in enng college
> in mumbai(india).

>
> we have created databases in postgresql for all staffs
> & students & granted them with permissions & password

   Are all users have superuser permission ?

>
> query :
>
> how to restrict database user from accessing other
> users databases?

    Accessing other user's database......IS it mean getting the table info
of other user's database?
>
> here we are  getting problem that any user can access
> database of other users
>
> pls tell us  how we can do in postgresql

See:
 \du
              List of database users
 User name | User ID |         Attributes
-----------+---------+----------------------------
 postgres    |         1 | superuser, create database
 root           |     100 | superuser, create database
 sampledb   |     103 |

If you have a user of 'sampledb' with no superuser permission..he can't
access the tables of other user's database.
Check the permissions and the login info.
>
> bye
>
>
> prof bramhe
> prof pandagre
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster




view thread (2+ messages)

Message-ID: <021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh>
Permalink:  ../021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh

 · 

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: sandhyar@amiindia.co.in, manoj_bramhe@yahoo.com
  Subject: Re: database access queries
  In-Reply-To: <021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh>
  References: <20050928102445.52912.qmail@web51607.mail.yahoo.com> <021201c5c41c$1df597d0$cd00000a@amiindiahjwbgh>

* 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