473,511 Members | 16,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

permissions

If I create new database objects, I have to give permissions to any
users or groups explicitly, for every object?

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
4 1021
On Thu, Jul 01, 2004 at 08:36:12 -0700,
Dennis Gearon <ge*****@fireserve.net> wrote:
If I create new database objects, I have to give permissions to any
users or groups explicitly, for every object?


Yes. But you can write scripts that query the information_schema and
generate the SQL GRANT commands and then run them.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #2
On Thu, Jul 01, 2004 at 14:37:52 -0700,
Dennis Gearon <ge*****@fireserve.net> wrote:
Bruno Wolff III wrote:
Yes. But you can write scripts that query the information_schema and
generate the SQL GRANT commands and then run them.

Can you post one (with the 'gulity' object names changed to protect
them), please?


I don't have a script handy as I don't regularly do that. I am not sure
that they would be all that useful for you anyway. The hardest part of
the script is getting the names of the objects you want to grant access
to. If you only want some of say the tables, you somehow need to generate
that list. Once you have the list, plugging the names one by one into
GRANT statements is easy. If you don't want to have the script connect
to the database for simplicity, just have it print them to a file and
run the file from psql.

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #3
Bruno Wolff III wrote:
On Thu, Jul 01, 2004 at 08:36:12 -0700,
Dennis Gearon <ge*****@fireserve.net> wrote:

If I create new database objects, I have to give permissions to any
users or groups explicitly, for every object?


Yes. But you can write scripts that query the information_schema and
generate the SQL GRANT commands and then run them.

Can you post one (with the 'gulity' object names changed to protect
them), please?

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #4
Bruno Wolff III wrote:
On Thu, Jul 01, 2004 at 14:37:52 -0700,
Dennis Gearon <ge*****@fireserve.net> wrote:

Bruno Wolff III wrote:
Yes. But you can write scripts that query the information_schema and
generate the SQL GRANT commands and then run them.

Can you post one (with the 'gulity' object names changed to protect
them), please?


I don't have a script handy as I don't regularly do that. I am not sure
that they would be all that useful for you anyway. The hardest part of
the script is getting the names of the objects you want to grant access
to. If you only want some of say the tables, you somehow need to generate
that list. Once you have the list, plugging the names one by one into
GRANT statements is easy. If you don't want to have the script connect
to the database for simplicity, just have it print them to a file and
run the file from psql.

I wonder how phpPgAdmin is at making this easier? I think I'll install
it and see what happens.

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2546
by: Kim Lots | last post by:
Hi Sorry to disturb you again but i really like to know what's the NTFS folder permissions on a "virtual directory" folder for a public webserver iis 5.x running ASP 3.0 with an Access DB on a...
1
3053
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to...
6
2264
by: !!! Klutzo !!! | last post by:
I give permissions for ASPNET on a top level subdirectory. A windows program copies a file into the subdirectory, however, my web service cannot access the file because it does not have...
2
4337
by: Jozef | last post by:
Hello, Is there a way to change table permissions in VB Code? I can't seem to find much that's concise in the help file. Here's the situation; I have a table in the "data" portion of a split...
7
476
by: none | last post by:
Hello: I had a nice php application running on my server here at home, and I uploaded it to a shared public type server and it started to break all over the place. It turns out that some...
13
1686
by: MLH | last post by:
Invalid qualifier error displays at compile time on this A97 example from Permissions Property HELP. What's wrong with the strContainerName assignment line? (6th line) Sub...
0
1336
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
8
7690
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
3
4422
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007...
6
3243
by: DotNetNewbie | last post by:
Hello, in my web application, I have to create permissions for each user. So what I am doing is that for each role (using sqlmembership in .net) I am creating a column in the database to hold a...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.