privileges

Authorize a non-admin developer in Xcode / Mac OS

送分小仙女□ 提交于 2019-11-26 23:46:33
问题 I use a standard user account for my daily tasks on Mac OS. Since upgrading to Snow Leopard I am asked to do the following when a program is run from within Xcode: "Type the name and password of a user in the 'Developer Tools' group to allow Developer Tools Access to make changes" While I know the admin username/password, this is annoying (though only required once per login). The developer tools access is asking for rights to "system.privilege.taskport.debug" from application gdb-i386-apple

Accessing another user's table within an Oracle Stored Procedure

放肆的年华 提交于 2019-11-26 23:14:29
问题 I'm writing a stored procedure to copy data from one user's table to another schema. Basically, it is a series of INSERT .. SELECT statements such as this: INSERT INTO GESCHAEFTE SELECT * FROM TURAT03.GESCHAEFTE WHERE kong_nr = 1234; This works fine when issueing from sqlplus (or TOAD for me ;-)) so I know that I have sufficient privileges, but when this is part of stored procedure like this: CREATE OR REPLACE FUNCTION COPY_KONG (pKongNr IN NUMBER) RETURN NUMBER AUTHID CURRENT_USER IS BEGIN

Spring Batch Framework - Auto create Batch Table

倾然丶 夕夏残阳落幕 提交于 2019-11-26 23:12:48
问题 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,

c# starting process with lowered privileges from UAC admin level process

断了今生、忘了曾经 提交于 2019-11-26 22:03:30
问题 I have one major problem with my app. I have an app & updater as a separate exe files. When an update is available, updater does the update, and on process completion it starts my app. The main problem is - app is installed in program files folder, so updater need UAC admin privileges, and that's ok, but when I need to run my app updater needs to run it as a normal user, because if it's run as an administrator drag and drop doesn't work (not an app problem, UAC blocks it). I've tried several

What precisely does 'Run as administrator' do? [closed]

落爺英雄遲暮 提交于 2019-11-26 21:57:53
On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an 'unknown publisher'. However, if I start my console by right clicking and choosing 'run as administrator', then the install works fine, even if the UAC dialogs are still present. My user is already a member of the 'administrators' group, so what precisely does 'run as administrator' do that makes my install work? My specific question is precisely: What does 'run as administrator' do? Neither of the answers thus

MySQL grant all privileges to database except one table

自闭症网瘾萝莉.ら 提交于 2019-11-26 20:26:58
I've been unable to find a reasonable solution to achieve the following: I wish to have a user that has ALL privileges on a database (or series of databases with the same schema), except for one table, to which they will only have SELECT privileges. Essentially I want the user to have free reign over a database but not to be able to update a specific table. So far I have tried, to no avail: Granting all privileges on that database (db_name.*) and then specifically granting only select privileges on that desired table (hoping it would overwrite the "all", stupid I know). Granting all privileges

Windows Vista/Windows 7 privilege: SeDebugPrivilege & OpenProcess

旧街凉风 提交于 2019-11-26 19:58:43
问题 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

Permission denied for relation

大憨熊 提交于 2019-11-26 19:14:29
I tried to run simple sql command: select * from site_adzone; and I got this error ERROR: permission denied for relation site_adzone What could be the problem here? I tried also to do select for other tables and got same issue. I also tried to do this: GRANT ALL PRIVILEGES ON DATABASE jerry to tom; but I got this response from console WARNING: no privileges were granted for "jerry" Do you have some idea what can be wrong? GRANT on the database is not what you need. Grant on the tables directly. Granting privileges on the database mostly is used to grant or revoke connect privileges. This

Why is window.showModalDialog deprecated? What to use instead?

£可爱£侵袭症+ 提交于 2019-11-26 18:58:01
I was developing a GreaseMonkey script which used window.showModalDialog . But before finishing it, I have discovered that Firefox 29 warns: Use of window.showModalDialog() is deprecated. Use window.open() instead. For more help https://developer.mozilla.org/en-US/docs/Web/API/Window.open But the problem is that window.open needs UniversalBrowserWrite privilege in order to open a modal window using window.open . Then, why is window.showModalDialog deprecated? Is there any API which doesn't require privileges? Note : I don't want a fake modal dialog (like jQuery's one), I need a real modal

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

允我心安 提交于 2019-11-26 18:47:03
问题 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? 回答1: 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