CONNECT privilege

Started by Joris Dobbelsteenover 19 years ago3 messagesgeneral
Jump to latest
#1Joris Dobbelsteen
Joris@familiedobbelsteen.nl

I've set up a little test to find out how much permissions users have in
PostGreSQL.
It seems that the CONNECT privilege cannot be assigned or is not
recognized by postgresql 8.1.

When using pgAdmin-III it does not display the granted CONNECT
priviledge.
Also when doing GRANT CONNECT FOR DATABASE <db> TO <user/group> it
succeeds, but I fail to observe its effects: i.e. users are not allowed
to a database.

The public rule has been removed of course from the database.

I did find GRANT CONNECT in the documentation, but no notes regarding
its operation.
Also I have read at least the pgAdmin documentation advices to use the
connect privilege rather than pg_hba configuration file, which seems
logical and easier to manage.

Any way I seem to be doing something wrong or missed something?

Thanks,

- Joris

#2Mikko Partio
dun@paprikalaatikko.be
In reply to: Joris Dobbelsteen (#1)
Re: CONNECT privilege

Joris Dobbelsteen wrote:

When using pgAdmin-III it does not display the granted CONNECT priviledge.
Also when doing GRANT CONNECT FOR DATABASE <db> TO <user/group> it
succeeds, but I fail to observe its effects: i.e. users are not allowed
to a database.

Have you modified pg_hba.conf to allow the new users to login?

MP

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Joris Dobbelsteen (#1)
Re: CONNECT privilege

"Joris Dobbelsteen" <Joris@familiedobbelsteen.nl> writes:

It seems that the CONNECT privilege cannot be assigned or is not
recognized by postgresql 8.1.

That was added in 8.2, as even minimal perusal of the documentation
would have shown you.

regards, tom lane