privileges

Spring Batch Framework - Auto create Batch Table

故事扮演 提交于 2019-11-27 23:32:25
I just created a batch job using Spring Batch framework, but I don't have Database privileges to run CREATE SQL. When I try to run the batch job I hit the error while the framework tried to create TABLE_BATCH_INSTANCE. I try to disable the <jdbc:initialize-database data-source="dataSource" enabled="false"> ... </jdbc:initialize-database> But after I tried I still hit the error org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE where JOB_NAME = ? and JOB_KEY = ?]; nested exception is java.sql

Windows Vista/Windows 7 privilege: SeDebugPrivilege & OpenProcess

你离开我真会死。 提交于 2019-11-27 19:43:46
Everything I've been able to find about escalating to the appropriate privileges for my needs has agreed with my current methods, but the problem exists. I'm hoping maybe someone has some Windows Vista/Windows 7 internals experience that might shine some light where there is only darkness. I'm sure this will get long, but please bear with me. Context I'm working on an application that requires accessing the memory of other processes on the current machine. This, obviously, requires administrator rights. It also requires SeDebugPrivilege (no, it is not a misspelling of SetDebugPrivilege ),

How do I get column datatype in Oracle with PL-SQL with low privileges?

霸气de小男生 提交于 2019-11-27 17:57:25
I have "read only" access to a few tables in an Oracle database. I need to get schema information on some of the columns. I'd like to use something analogous to MS SQL's sp_help . I see the table I'm interested in listed in this query: SELECT * FROM ALL_TABLES When I run this query, Oracle tells me "table not found in schema", and yes the parameters are correct. SELECT DBMS_METADATA.GET_DDL('TABLE', 'ITEM_COMMIT_AGG', 'INTAMPS') AS DDL FROM DUAL; After using my Oracle universal translator 9000 I've surmised this doesn't work because I don't have sufficient privileges. Given my constraints how

CPU Privilege Rings: Why rings 1 and 2 aren't used?

谁说胖子不能爱 提交于 2019-11-27 16:54:27
A couple of questions regarding the x86 CPU privilege rings: Why aren't rings 1 and 2 used by most operating systems? Is it just to maintain code compatibility with other architectures, or is there a better reason? Are there any operating systems which actually use those rings? Or are they completely unused? As a hobbyist operating system writer, I found that because paging (a major part of the modern protection model) only has a concept of privileged (ring 0,1,2) and unprivileged, the benefit to rings 1 and 2 were diminished greatly. The intent by Intel in having rings 1 and 2 is for the OS

Is there a way to disable updates/deletes but still allow triggers to perform them?

别等时光非礼了梦想. 提交于 2019-11-27 15:40:14
Basically, I want to be able to use the REVOKE command to disable UPDATE and DELETE , but I still want the triggers on a table to update my rows. My triggers perform on newly inserted rows, and update a specific field. So I still want this behaviour, but wouldn't they be disabled with REVOKE or with a RULE . ( I saw an SO post ) Is there a way to keep using the UPDATE / INSERT commands in TRIGGERS but disabling the rest? Erwin Brandstetter Yes, this is possible. Triggers are run with the privileges of the trigger function, defaulting to SECURITY INVOKER which means, the trigger function is

What is the best way for checking if the user of a script has root-like privileges?

纵然是瞬间 提交于 2019-11-27 12:32:47
I have a Python script that will be doing a lot of things that would require root-level privileges, such as moving files in /etc, installing with apt-get, and so on. I currently have: if os.geteuid() != 0: exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.") Is this the best way to do the check? Are there other best practices? Under the "Easier to Ask Forgiveness than Permission" principle: try: os.rename('/etc/foo', '/etc/bar') except IOError as e: if (e[0] == errno.EPERM): print >> sys.stderr, "You need root permissions to do this,

Obtaining admin privileges to delete files using rm from a Cocoa app

末鹿安然 提交于 2019-11-27 12:30:51
问题 I am making a small app that deletes log files. I am using an NSTask instance which runs rm and srm (secure rm) to delete files. I want to be able to delete files in: /Library/Logs ~/Library/Logs The issue is that the user account does not have permissions to access some files in the system library folder, such as the Adobe logs subfolder and others. For example, only the "system" user (group?) has r/w permissions for the Adobe logs folder and its contents, and the current user doesn't even

Grant privileges for a particular database in PostgreSQL

会有一股神秘感。 提交于 2019-11-27 11:29:39
I'm moving from MySQL to PostgreSQL and have hit a wall with user privileges. I am used to assigning a user all privileges to all tables of a database with the following command: # MySQL grant all privileges on mydatabase.* to 'myuser'@'localhost' identified by 'mypassword'; It appears to me that the PostgreSQL 9.x solution involves assigning privileges to a "schema", but the effort required of me to figure out exactly what SQL to issue is proving excessive. I know that a few more hours of research will yield an answer, but I think everyone moving from MySQL to PostgreSQL could benefit from

Detect if running with administrator privileges under Windows XP

╄→尐↘猪︶ㄣ 提交于 2019-11-27 10:37:34
问题 I am trying to work out how to detect whether a user is running with admin rights under Windows XP. This is fairly easy to do in Vista/Win7 thanks to the whoami command. Here's a snippet in Ruby for how to do it under Vista: Note, the following link now incorporates the solution suggested by muteW http://gist.github.com/65931 The trouble is, whoami doesn't come with Windows XP and so the above linked method will always return false on WinXP, even if we're running as an administrator. So, does

How to show all privileges from a user in oracle?

别说谁变了你拦得住时间么 提交于 2019-11-27 10:20:58
Can someone please tell me how to show all privileges/rules from a specific user in the sql-console? Teja You can try these below views. SELECT * FROM USER_SYS_PRIVS; SELECT * FROM USER_TAB_PRIVS; SELECT * FROM USER_ROLE_PRIVS; DBAs and other power users can find the privileges granted to other users with the DBA_ versions of these same views. They are covered in the documentation . Those views only show the privileges granted directly to the user. Finding all the privileges, including those granted indirectly through roles, requires more complicated recursive SQL statements: select * from dba