Granting permissions

Started by Postgres Userabout 19 years ago10 messagesgeneral
Jump to latest
#1Postgres User
postgres.developer@gmail.com

Is there a way to grant INSERT and UPDATE permissions on all the
tables in a database? I don't want to type-in every table name...

#2A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: Postgres User (#1)
Re: Granting permissions

am Wed, dem 04.04.2007, um 22:23:20 -0700 mailte Postgres User folgendes:

Is there a way to grant INSERT and UPDATE permissions on all the
tables in a database? I don't want to type-in every table name...

http://people.planetpostgresql.org/greg/index.php?/archives/38-Scripting-with-psql.html#extended

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

#3Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: A. Kretschmer (#2)
Re: Granting permissions

Even More is there any way to grant permission to a user on another database ??

With Regards
Ashish
"A. Kretschmer" <andreas.kretschmer@schollglas.com> wrote:
am Wed, dem 04.04.2007, um 22:23:20 -0700 mailte Postgres User folgendes:

Is there a way to grant INSERT and UPDATE permissions on all the
tables in a database? I don't want to type-in every table name...

http://people.planetpostgresql.org/greg/index.php?/archives/38-Scripting-with-psql.html#extended

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers

#4Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: A. Kretschmer (#2)
Re: Granting permissions

Even More is there any way to grant permission to a user on another database ??

With Regards
Ashish
"A. Kretschmer" <andreas.kretschmer@schollglas.com> wrote:
am Wed, dem 04.04.2007, um 22:23:20 -0700 mailte Postgres User folgendes:

Is there a way to grant INSERT and UPDATE permissions on all the
tables in a database? I don't want to type-in every table name...

http://people.planetpostgresql.org/greg/index.php?/archives/38-Scripting-with-psql.html#extended

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers

#5Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: A. Kretschmer (#2)
Re: Granting permissions

Even More is there any way to grant permission to a user on another database ??

With Regards
Ashish
"A. Kretschmer" <andreas.kretschmer@schollglas.com> wrote:
am Wed, dem 04.04.2007, um 22:23:20 -0700 mailte Postgres User folgendes:

Is there a way to grant INSERT and UPDATE permissions on all the
tables in a database? I don't want to type-in every table name...

http://people.planetpostgresql.org/greg/index.php?/archives/38-Scripting-with-psql.html#extended

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers

#6A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: Ashish Karalkar (#3)
Re: Granting permissions

am Thu, dem 05.04.2007, um 7:59:11 +0100 mailte Ashish Karalkar folgendes:

Even More is there any way to grant permission to a user on another database ??

What do you want to do?

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

#7Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: A. Kretschmer (#6)
Re: Granting permissions

Hi,
I want to give only select,insert,update,delete permission on a particular database to a user. and aslso this user should not have any createdb permission.
With Regards
Ashish...

"A. Kretschmer" <andreas.kretschmer@schollglas.com> wrote:
am Thu, dem 05.04.2007, um 7:59:11 +0100 mailte Ashish Karalkar folgendes:

Even More is there any way to grant permission to a user on another database ??

What do you want to do?

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

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

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers

#8Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: A. Kretschmer (#6)
Re: Granting permissions

Hi,
I want to give only select,insert,update,delete permission on a particular database to a user. and aslso this user should not have any createdb permission.
With Regards
Ashish...

"A. Kretschmer" <andreas.kretschmer@schollglas.com> wrote:
am Thu, dem 05.04.2007, um 7:59:11 +0100 mailte Ashish Karalkar folgendes:

Even More is there any way to grant permission to a user on another database ??

What do you want to do?

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

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

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers

#9Albe Laurenz
all@adv.magwien.gv.at
In reply to: Ashish Karalkar (#7)
Re: Granting permissions

I want to give only select,insert,update,delete permission on
a particular database to a user. and aslso this user should
not have any createdb permission.

I think that you get the concept wrong.

You cannot select from a database, you can only select from a
table (or view).

You probably mean 'select permissions for all tables in a database'.

There is no such thing.
Permissions are stored on the objects themselves, so a table
"knows" who is allowed to access it.

For what you want, you must give the user
a) permissions on all individual tables he/she should access
b) USAGE privilege on the Schemata
c) CONNECT privilege to the database.

Yours,
Laurenz Albe

#10Ashish Karalkar
ashish_postgre@yahoo.co.in
In reply to: Albe Laurenz (#9)
Re: Granting permissions

Thanks Albe ,
yes,database means all objects of that database.
I will check this out.
Thanks
Ashish...
Albe Laurenz <all@adv.magwien.gv.at> wrote:

I want to give only select,insert,update,delete permission on
a particular database to a user. and aslso this user should
not have any createdb permission.

I think that you get the concept wrong.

You cannot select from a database, you can only select from a
table (or view).

You probably mean 'select permissions for all tables in a database'.

There is no such thing.
Permissions are stored on the objects themselves, so a table
"knows" who is allowed to access it.

For what you want, you must give the user
a) permissions on all individual tables he/she should access
b) USAGE privilege on the Schemata
c) CONNECT privilege to the database.

Yours,
Laurenz Albe

---------------------------------
Here�s a new way to find what you're looking for - Yahoo! Answers