473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Prevent users from creating tables

Hello,
I'm trying to set up PostgreSQL for proof of concept according to our
standards.
I need to create a user for database01 that has the ability to create
any objects they want.
They can create tables, views, indexes, etc.

Then I need a second user that has the privileges to only SELECT,
INSERT, UPDATE, DELETE from objects in a certain database.

How do I grant these privs?
How do I prevent a user from dropping objects?

Thank you!

Troy Campano
Liberty Mutual
Infrastructure Software Engineering
Database Management
desk: (603) 245 4092
cell: (603) 219 5539
Department Information
<http://intranet.lmig.com:3000/infosy...base/dbapp/dep
artment/index.jsp>

Nov 23 '05 #1
2 1933

"Campano, Troy" <Tr**********@LibertyMutual.com> wrote:

Hello,
I'm trying to set up PostgreSQL for proof of concept according to our
standards.
I need to create a user for database01 that has the ability to create
any objects they want.
They can create tables, views, indexes, etc.

Then I need a second user that has the privileges to only SELECT,
INSERT, UPDATE, DELETE from objects in a certain database.

How do I grant these privs?
How do I prevent a user from dropping objects?


http://www.postgresql.org/docs/7.4/s...sql-grant.html

Jim

---------------------------(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 #2

"Campano, Troy" <Tr**********@LibertyMutual.com> wrote:

Hello,
I'm trying to set up PostgreSQL for proof of concept according to our
standards.
I need to create a user for database01 that has the ability to create
any objects they want.
They can create tables, views, indexes, etc.

Then I need a second user that has the privileges to only SELECT,
INSERT, UPDATE, DELETE from objects in a certain database.

How do I grant these privs?
How do I prevent a user from dropping objects?


http://www.postgresql.org/docs/7.4/s...sql-grant.html

Jim

---------------------------(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 #3

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

Similar topics

1
by: Danny | last post by:
sorry for posting a question that has probably been posted hundreds of times, but i can't seem to find the answer i need...We're using a Sql Server 7.0 database and recently started getting timeout...
1
by: Jon | last post by:
Hi all! Are there any other way than using rights or Triggers to prevent a DELETE or an UPDATE on a specific column. The "problem" with rights is that they dont apply to all DB-users The...
1
by: Ant | last post by:
Hi I have an Access 97 database sitting on a shared drive on a server, users have various versions of Office (2000 & 2003) they all need to be able to see the tables in the 97 application...
0
by: Campano, Troy | last post by:
Hello, I'm trying to set up PostgreSQL for proof of concept according to our standards. I need to create a user for database01 that has the ability to create any objects they want. They can...
18
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site...
3
by: CharlesA | last post by:
Hi folks, I'm using VS 2005 Team system with C# and ASP.net 2.0. I have an MCSD.Net in 1.1 and relevant commercial experience of ASP.net 1.1 when I click the 'ASP.Net configuration' on the top...
3
by: S.M.Deshpande | last post by:
Hi, I have installed DB2 version 8.1 and created two databases, TEST1 and TEST2. Two operating system users test1 and test2 are mapped to two database users in TEST1 and TEST2 databases...
3
by: ncsthbell | last post by:
In startup options, I have unchecked "Allow Full Menus", so users cannot select 'Hide/unhide' from the toolbar menus. On this same form I also have "Display Database Window' unchecked. On...
4
by: jbrumbau | last post by:
Hello, I have been successfully using a database I've created for several months to populate an equipment list for a project we've been working on. However, the form has recently stopped working...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.