From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | John Purser <jmpurser(at)gmail(dot)com> |
Cc: | Karen Hill <karen_hill22(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: How do I revoke CREATE TABLE and other privileges? |
Date: | 2006-07-07 00:48:12 |
Message-ID: | 20060707004812.GA51018@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Jul 06, 2006 at 09:55:40AM -0700, John Purser wrote:
> "Karen Hill" <karen_hill22(at)yahoo(dot)com> wrote:
> > Revoking PUBLIC worked. I can now login to the database and it will
> > not allow me to create new tables. However when I gave (as postgres)
> > the restricted user permission to execute one function it says it
> > cannot find the function when I try to execute it.
>
> You hopefully just need to edit your search path. See page 56 of the
> manual for details. Type 'show search_path;' into pgsql and see what
> the value is currently set to. Then use set to make it include the
> schema with your function.
The user probably needs USAGE on the schema. If a user has no
privileges on a schema then he or she can't access objects in that
schema regardless of search_path or the privileges on the objects
themselves.
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma Jr | 2006-07-07 00:59:12 | Re: Old data (was Re: Long term database archival) |
Previous Message | Agent M | 2006-07-07 00:46:15 | Re: Long term database archival |