Search Postgresql Archives

Re: Rolls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, February 1, 2018, Andrew Bartley <ambartley@xxxxxxxxx> wrote:
Hi all,

I am trying to work out a way to create a roll/user that can only execute one particular function and nothing else.  The particular function has been created with "SECURITY DEFINER".

Never tried it but "REVOKE PUBLIC FROM role" then "GRANT ... TO role" would ideally work.

Not simple since every role is a member of PUBLIC from which they all inherit useful defaults.  You can remove those defaults and the already granted privileges from PUBLIC and then add them back to some super-role group that everyone but this user belongs too.  Then only add the one grant you desire to this user.

David J.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux