privileges

Difference between query of privileges in tables

家住魔仙堡 提交于 2019-12-02 05:28:25
Reading this answe r I found a query to find the privileges of a table: SELECT * FROM ALL_TAB_PRIVS WHERE TABLE_NAME = 'MY_TABLE' But a friend give me to me this query: select a.USERNAME,a.GRANTED_ROLE,b.ROLE,b.owner,b.TABLE_NAME,b.privilege from user_role_privs a,role_tab_privs b where b.ROLE=a.GRANTED_ROLE and b.TABLE_NAME = 'MY_TABLE'; There is some substantial difference between each query? They are quite different, yes. In Oracle, privileges on a table can be granted either directly to a user (in which case they would appear in ALL_TAB_PRIVS ) or privileges can be granted to a role

Granting c++ program administrative rights through UAC at startup

余生颓废 提交于 2019-12-01 23:02:20
问题 So I've done some research, but I'm interested in understanding how one would make his program ask for administrative privileges from the UAC before its execution. Would this require one to use "runas" inside the ShellExecute()? I realize that this is something I will need to understand into my adventure of programming, as just about every program I have installed has asked me this. So for example, if I gave a program privileges at start up it would be able to execute any batch file or cmd

Grant database user folder access

风格不统一 提交于 2019-12-01 22:12:00
I'm trying to create a csv export of data from mysql using the following query: SELECT * INTO OUTFILE '/tmp/result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM getfreepellets WHERE 1 And I get the following error: #1045 - Access denied for user '[username]'@'localhost' (using password: YES) (removed username but it's the right one) How would I go about granting access to this user to create a file on the server? Edit: I changed the first line to be my exact home path, and received the same error. You may want to GRANT your user the FILE

How to “subtract” privileges in MySQL

孤者浪人 提交于 2019-12-01 19:05:01
问题 I want to revoke update privielges from 2 columns of table "transact". I want the user to have all access to all other tables and data. mysql> REVOKE UPDATE (system, consumer) ON ledger.transact FROM 'foo'@'localhost'; ERROR 1147 (42000): There is no such grant defined for user 'foo' on host 'localhost' on table 'transaction' The above does not seem to work. 回答1: I agree with Thilo - you would only be able to revoke those column privileges if you had granted them before. You cannot grant on a

Is it possible to view Oracle user table privileges without having DBA privilege?

荒凉一梦 提交于 2019-12-01 16:43:53
问题 Is it possible to view the roles of the user without having DBA Privilege? If so, how? SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = 'USER_NAME'; The above query needs the "SELECT_CATALOG_ROLE" role. I need to get the result of the above query without (DBA and SELECT_CATALOG_ROLE) Privileges. 回答1: Perhaps ALL_TAB_PRIVS will provide what you want. Apparently, it contains: Grants on objects for which the user is the grantor, grantee, owner, or an enabled role or PUBLIC is the grantee 回答2: See me

Binding on privileged ports (ports < 1024) on Mac OS X 10.6

心不动则不痛 提交于 2019-12-01 14:31:18
问题 Do you know how to remove restriction on binding to ports < 1024 with a user account that is not root on Mac OS X? 回答1: The best way is to leverage launchd . The restriction on binding to ports < 1024 will still be there and is not likely to go anywhere, but if your app requests elevated privileges once in order to add the necessary launchd configuration, then you can let launchd do the actual listening on the privileged port and pass the socket to your app when appropriate. See the section

How can I manipulate token privileges in .Net?

给你一囗甜甜゛ 提交于 2019-12-01 04:43:32
I'd like to use C# to determine which privileges are assigned to my process/thread token, and adjust them as necessary. For example, in order for my program to restart the computer, it must first enable the SeShutdownPrivilege privilege. How can that be done safely from managed code? This turns out to be non-trivial because there's no built-in mechanism for it. Not only is P/Invoke required, but you must code carefully to make sure that you don't "leak" privileges by enabling them and then not disabling them soon enough (though not an issue if you're restarting the computer). For a complete

create synonym ora-01031 insufficient privileges

随声附和 提交于 2019-12-01 03:52:04
I need help understanding what grants/privileges a user needs to CREATE a SYNONYM when it points to another (different) schema object. When I try the below, I get ora-01031 insufficient privileges, so obviously I am missing and failing to apply other needed privileges. I did search as well as I could but couldn't find anything specific to cross-schema synonyms. CREATE USER test IDENTIFIED BY pw DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP; ALTER USER test IDENTIFIED BY pw; GRANT CONNECT, RESOURCE TO test; -- ... create a bunch of stuff in test... CREATE USER READWRITE IDENTIFIED BY pw

Use perf inside a docker container without --privileged

此生再无相见时 提交于 2019-12-01 03:50:47
I am trying to use the perf tool inside a Docker container to record a given command. kernel.perf_event_paranoid is set to 1, but the container behaves just as if it where 2, when I don't put the --privileged flag. I could use --privileged, but the code I am running perf on is not trusted and if I am OK with taking a slight security risk by allowing perf tool, giving privileged rights on the container seems a different level of risk. Is there any other way to use perf inside the container? ~$ docker version Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git commit: 7392c3b

Cannot drag and drop to debugged-application run from a privileged-run Visual Studio 2010

可紊 提交于 2019-12-01 03:43:25
I'm debugging my application which has drag-n-drop features in Visual Studio 2010. I have to run the IDE in privileged mode since some of my project required so. My problem: I can drag-drop when run the .exe file normally (run from Windows Explorer (WE)) but when debugging in VS2010 I cannot do drag-dropping between my app and WE. I tried to open WE in privileged mode but still cannot debug either. Do you have the same problem? If you do, do you have any work-around for it? Please share. Another workaround is to run the debug binary from Windows Explorer and attach to the process from within