Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Simple webuser setup


  • From: "Raymond O'Donnell" <rod(at)iol(dot)ie>
  • To: pgsql-general(at)postgresql(dot)org, msiner(at)gmail(dot)com
  • Subject: Re: Simple webuser setup
  • Date: Tue, 18 Jul 2006 17:43:04 +0100
  • Message-id: <44BD1DA8.13074.2B515B@rod.iol.ie> <text/plain>

On 17 Jul 2006 at 6:08, msiner(at)gmail(dot)com wrote:

> I have a db named archive, a schema named library, and a table named
> book.  I have granted USAGE on library to webuser and SELECT on book
> to webuser.  When I try to do a select I get an error saying
> "permission denied for schema library".  I have tried every combination

How are you accessing the DB from your web app? What 
language/envoronment are you using?

Are you sure that the username/password combination is being passed 
along to the DB? - have you tried connecting directly to the DB using 
psql, logging in as webuser, and running queries against the DB?

--Ray.


----------------------------------------------------------------------

Raymond O'Donnell
Director of Music, Galway Cathedral, Galway, Ireland
rod(at)iol(dot)ie
----------------------------------------------------------------------





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group