From: | sramay <nic(dot)srama(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | General Query on Roles - Reg |
Date: | 2013-07-05 08:14:19 |
Message-ID: | 1373012059761-5762655.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I always use a community source, compile and use for all those projects.
I have doubt
Assume I am creating a user say 'test' with nosuperuser privilege with just
login
and associate this user with any database using authorization. But I am
able to create a table
for the test user in 'postgres' database. Why user test is allowed to login
in to 'postgres' database
when he is superuser, why can at login level stopped? Can it be done using
pg_hba.conf?
My activity
--begin
postgres(at)otc:~/bin$
postgres(at)otc:~/bin$ psql -U postgres
psql (9.3beta2)
Type "help" for help.
postgres=# \d
No relations found.
postgres=# create role test nosuperuser login password 'test';
CREATE ROLE
postgres=# exit
postgres-# \q
postgres(at)otc:~/bin$ psql -U test postgres
psql (9.3beta2)
Type "help" for help.
postgres=> \d
No relations found.
postgres=> create table test (id numeric
postgres(> );
CREATE TABLE
postgres=> \d
List of relations
Schema | Name | Type | Owner
--------+------+-------+-------
public | test | table | test
(1 row)
------------------------end --
Can any one answer where I am going wrong?
Regards
Ramachandran S
--
View this message in context: http://postgresql.1045698.n5.nabble.com/General-Query-on-Roles-Reg-tp5762655.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | itishree sukla | 2013-07-05 08:29:51 | Triggers |
Previous Message | Pavel Stehule | 2013-07-05 07:40:54 | Re: User defined cast creation |