[pgadmin-support] [SOLVED] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
Hi Richard, Thanks for your response. I have been able to solve the mystery. The problem was from QGIS as suspected. When you create the first user connection to the database (PostgreSQL/PostGIS in this case) and you add a new connection with a different user or edit the first connection to a diff

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
Hi Richard, Thanks for your response. I have been able to solve the mystery. The problem was from QGIS as suspected. When you create the first user connection to the database (PostgreSQL/PostGIS in this case) and you add a new connection with a different user or edit the first connection to a diff

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Richard Greenwood
I can not reproduce your issue. I have a standard read-only user. I connect from qgis to postgres with that user and I can not even enable editing in qgis (the "pencil" button is disabled). I'm on Linux, postgres 9.4, qgis 2.14. It sounds like your pgadmin is working as expected so I would suggest

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
Hi Tim, Ok, thanks for your help. On Fri, Mar 17, 2017 at 4:32 PM, HEARNE, TIMOTHY S wrote: > I am unfamiliar with the QGIS product. If when you logon using pgAdmin, > you can’t change the field / column then it is probably not a configuration > issue on the database side. > > It may be relate

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread HEARNE, TIMOTHY S
I am unfamiliar with the QGIS product. If when you logon using pgAdmin, you can’t change the field / column then it is probably not a configuration issue on the database side. It may be related to how the QGIS tool is configured and the permissions necessary to use the tool. You may want to re

Fwd: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
I would like to know why the privileges/permission is working when tested with pgAdmin/pgsql, but it is not working with the same user/schema/table in QGIS. -- Forwarded message -- From: Osahon Oduware Date: Fri, Mar 17, 2017 at 4:17 PM Subject: Re: [pgadmin-support] QGIS Seem To

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
I can confirm that the user is not a superuser. This is the script generated for the user: CREATE USER WITH LOGIN NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; GRANT TO ; **Where is as created in previous mail On Fri, Mar 17, 2017 at 4:08 PM, HEARNE, TIMOTHY S wrote: > If you

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
The role was created as shown below: CREATE ROLE WITH NOLOGIN NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; On Fri, Mar 17, 2017 at 3:56 PM, HEARNE, TIMOTHY S wrote: > Did you create the user with SUPERUSER or some other elevated privilege? > Since you did not include the script f

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
Hi, Thanks for your prompt response. The user was created with the postgres user (superuser) as below: CREATE USER WITH PASSWORD ''

Re: [pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread HEARNE, TIMOTHY S
Did you create the user with SUPERUSER or some other elevated privilege? Since you did not include the script for the user, it is hard to determine the exact root cause. If you have any questions, please feel free to contact me. Tim Hearne CAST / Flex Force Application DBA Principal DBA Centrali

[pgadmin-support] QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions

2017-03-17 Thread Osahon Oduware
Hi All, I created a "Read-only" User in PostgreSQL via a Role with "SELECT" ONLY privilege on all tables in a schema as shown below: GRANT SELECT ON ALL TABLES IN SCHEMA [schema_name] TO [role_name] GRANT [role_name] TO [user_name] Next, I test this by trying to UPDATE a column in a table (same

Re: [pgadmin-support] installation question

2017-03-17 Thread Dave Page
On Fri, Mar 17, 2017 at 3:31 AM, Devrim Gündüz wrote: > > Hi, > > On Thu, 2017-03-16 at 11:55 -0700, Scott Classen wrote: >> but it is unclear to me where the config_local.py file is supposed to go. > > We don't distribute it with the packages, but it should go under here: > > /usr/lib/python2.7/s