LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2016, 11:11 PM   #1
6th_sense
Member
 
Registered: Jun 2006
Distribution: Centos 7.x, Fedora (one version behind latest)
Posts: 140

Rep: Reputation: 6
How do I prevent roles from table creation in Postgres?


I'm running Postgres 9.3, and I was wondering:

I wish to create a database role that isn't allowed to create/alter tables in the database which the role is allowed to access. But, it should be able to query, search and insert data.

Is that possible?

The official documentation goes as far as listing createdb priviledges, but I didn't see the portion that describes this level of access control that I am looking for.

Let me know if it is not possible to actually create such a role.
 
Old 03-18-2016, 03:52 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

Maybe try the following.
1. create a role that has SELECT and INSERT rights on tables, but not UPDATE.
2. then assign that role to the role that on which you wanted to limit the rights.

I have not tried it, as I do not have a Postgresql box to work on now.

Regards,
 
  


Reply

Tags
create, postgresql, tables


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to prevent backup file creation (kate & kwrite) Teufel Linux - Newbie 4 04-20-2012 11:27 PM
[SOLVED] Prevent subdirectory creation while allowing file creation bweddell Linux - Security 5 07-31-2011 08:54 PM
SELinux prevent snapshot lv creation Dig Linux - Server 8 04-07-2010 03:25 PM
create table in postgres database kranti Linux - Newbie 1 11-15-2005 06:52 PM
Displaying the table definition on Postgres mkrishnanand Programming 1 08-18-2004 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration