privileges

List grants and privileges for a materialized view in PostgreSQL

拟墨画扇 提交于 2019-12-04 01:02:57
I need to determine what privileges are currently granted for some materialized views in my database. The query to do this for a table or standard view is pretty straight forward: SELECT grantee, string_agg(privilege_type, ', ') AS privileges FROM information_schema.table_privileges WHERE table_schema = 'some_schema' AND table_name = 'some_table' GROUP by grantee; That said, there doesn't seem to be an analogous table for materialized views. Where does PostgreSQL store this information? In Postgres system catalogs are the basic set of complete information about the installation and databases.

Mysql: execute command denied to user ''@'localhost' for routine error

不问归期 提交于 2019-12-03 23:33:24
i got some problem during open my old website. My dataTable show: DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error. After that, I tried to debug my script and found error in mysql: Error occuered during query execution: (<small>SELECT SQL_CALC_FOUND_ROWS ID,name,remark,avrusepmonth , CONCAT('<input type=''checkbox''id=''cb' , ID ,''' name=''check[]'' value=''',ID,''' >','<label class=''lbcb'' for=''cb', ID,'''><=update=</label>') as checkb ,monthavrage(ID,12) as latestavr , moq, leadtime FROM test_media WHERE nowuse=1 and monthavrage(ID

Impersonate SYSTEM (or equivalent) from Administrator Account

[亡魂溺海] 提交于 2019-12-03 22:12:27
问题 This question is a follow up and continuation of this question about a Privilege problem I'm dealing with currently. Problem Summary: I'm running a program under a Domain Administrator account that does not have Debug programs (SeDebugPrivilege) privilege, but I need it on the local machine. Klugey Solution: The program can install itself as a service on the local machine, and start the service. Said service now runs under the SYSTEM account, which enables us to use our SeTCBPrivilege

Access /Private/etc with c

瘦欲@ 提交于 2019-12-03 20:19:50
this might be a simple question, but how do I "request" system / root priviliges from the user in a c console application. I need to write to /Private/etc but i can't. This is for mac / unix. I've seen it being used in other console commands e.g. when you run the following command: "sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder", Terminal asks you for your Password. How do I do this? thanks, JNK There isn't any system call which will let a process obtain root privileges. You might expect seteuid to work this way, but it can only be used by processes with root processes

Forced the application to have the administrator privileges

心不动则不痛 提交于 2019-12-03 15:24:08
I need to give my application administrator rights, knowing that it will be run from a user session and not admin account. I've looked on other sites, but can't find anything that helps. I tried editing the manifest among other things and there have inserted the line: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> This gave me an error when trying to publish using ClickOnce, but not when I debug. Can you help me? first of all - indeed, it's not allowed by design, to install and ClickOnce app as admin: http://msdn.microsoft.com/en-us/library/142dbbz4(v=vs.90).aspx

Find out if user got permission to select/update/… a table/function/… in PostgreSQL

◇◆丶佛笑我妖孽 提交于 2019-12-03 13:19:19
问题 What is the recommended way to figure out if a user got a certain right (e.g. select or execute) on a certain class (e.g. table or function) in PostgreSQL? At the moment I got something like aclcontains( someColumnWithAclitemArray, makeaclitem(userOid,grantorOid,someRight,false)) but it's terrible since I have to check for every grantorOid that is possible and for every userOid the user can belong to. On a related note: what are the possible rights you can test for? I haven't found any

Determine if Windows process has privilege to create symbolic link

╄→гoц情女王★ 提交于 2019-12-03 11:04:30
问题 I want to programmatically determine if the current user (or process) has access to create symbolic links. In Windows (Vista and greater), one cannot create a symbolic link without the SeCreateSymbolicLinkPrivilege and by default, this is only assigned to administrators. If one attempts to create a symbolic link without this privilege, a Windows error 1314 (A required privilege is not held by the client) occurs. To demonstrate this restriction, I created a clean install of Windows, logged in

Providing MySQL users with just the minimum privileges

家住魔仙堡 提交于 2019-12-03 09:50:25
For a web application, when creating the user which will connect to the MySQL database, you have the choice of privileges. Assuming that the only actions intended to be done by that user are SELECT/INSERT/UPDATE/DELETE, it seems to make sense to only provide those privileges, however I've never seen that recommended anywhere - what are the reasons for and against this method? There are other privileges that a user might need during an ordinary application, for example: CREATE TEMPORARY TABLE EXECUTE (stored procedures) FILE (for SELECT INTO and LOAD DATA) LOCK TABLES There's also the

How to view user privileges using windows cmd?

好久不见. 提交于 2019-12-03 06:40:13
问题 I am trying to view the user privileges using the command prompt in Windows. User account & User privileges such as SeBatchLogonRight SeDenyBatchLogonRight SeInteractiveLogonRight SeDenyInteractiveLogonRight SeServiceLogonRight SeDenyServiceLogonRight SeNetworkLogonRight SeDenyNetworkLogonRight.....etc. I tried using ntrights but it's not working. I can't use any tool as I am trying to create an automated script for an OS audit. Thanks in advance. 回答1: I'd start with secedit /export /areas

Remove privileges from MySQL database

試著忘記壹切 提交于 2019-12-03 03:03:23
问题 Before you think this is a duplicate question, I believe I have a unique, even if it is somewhat dim-witted, case. A few days ago, I upgraded the version of MySQL on my Ubuntu 10.04 server to 5.3.3 (it's ahead of the Ubuntu releases for 10.04). Today, I attempted to log into phpMyAdmin for something and discovered the somewhat dreaded Connection for controluser as defined in your configuration failed error. After following descriptions from several SO questions on how to fix this, I have