-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIT to carry over default privileges #14930
Comments
Author Name: Giovanni Manghi (@gioman) SPIT is not mantained and it will be discontinued as soon as DB Manager (that is also a replacement of PostGIS Manager) will support multiple shapefiles upload. |
Author Name: Patrick Rickles (Patrick Rickles) Will the DB Manager carry over default access privileges? When will the DB Manager be available with a stable release? Thanks for any info :) |
Author Name: Giovanni Manghi (@gioman) Patrick Rickles wrote:
for now try PostGIS Manager (that has a tool to export shapefiles to PostGIS) and then report back if you have the same issue. Eventually we will leave a note to the DB Manager developer. |
Author Name: Patrick Rickles (Patrick Rickles) Hi Giovanni, I've just downloaded PostGIS Manager (nice plugin!), but can verify the same issue with default access privileges not being carried over to imported shapefiles. Could you notify the DB Manager developer about this issue (or let me know how I can do so)? Cheers! |
Author Name: Giovanni Manghi (@gioman) Patrick Rickles wrote:
Hi Patrick, https://issues.qgis.org/projects/dbmanager
|
Author Name: Patrick Rickles (Patrick Rickles)
Original Redmine Issue: 5188
Affected QGIS version: 1.7.3
I am trying to set up a postgres/postgis database for multiple users (roles) to import shapefiles into and view/edit. I have default privileges set for the schema (public) so that users will have full permissions on all tables (existing and newly added ones). With this in place, I add a new shapefile to that database with SPIT logged in as one user; however, when I try to "Add PostGIS Layer" logged in as another user, I cannot see the shapefile the first user added. However, if I add a new table to the database inside of psql itself (create table), it does carry over the permissions.
Steps to Replicate:
Inside of psql (using version 9.1)
(either make with postgis as template or do "createlang plpgsql test1" and run postgis.sql, postgis_comments.sql and spatial_ref_sys.sql afterwards to spatialise the database)
(afterwards, do "grant all on table geometry_columns to user1" and "grant all on table spatial_ref_sys to user1"; you may also need to do "alter role user1 login")
(afterwards, do "grant all on table geometry_columns to user2" and "grant all on table spatial_ref_sys to user2"; you may also need to do "alter role user2 login")
On the system
You may need to also edit postgresql.conf by changing listen_address to '*' and uncommenting the line "port = 5432", if it's commented out.
In QGIS
Back in psql
(Apologies, if this has been listed incorrectly; I see this more as a bug rather than a feature)
The text was updated successfully, but these errors were encountered: