privileges

SE_SYSTEMTIME_NAME privilege does not exists

半腔热情 提交于 2019-12-11 10:28:50
问题 I am trying to change the system time from a user account (not from admin account) on windows7 machine. In order to change the system time, it is mentioned in this link that we need to have SE_SYSTEMTIME_NAME privilege. Here is my python script. import os,sys import win32api import win32security priv_flags = win32security.TOKEN_ADJUST_PRIVILEGES | win32security.TOKEN_QUERY hToken = win32security.OpenProcessToken (win32api.GetCurrentProcess (), priv_flags) privilege_id = win32security

Py2Exe: avoid windows to request permission to execute .exe file

こ雲淡風輕ζ 提交于 2019-12-11 10:14:45
问题 I have a py2exe-built program which is executed directly from the console (Windows Powershell). Involved modules are: xlrd and PrettyTable. Unfortunately, each time the program is called, Windows asks the user for a confirmation, as the program would need particular privileges. This is undesirable as the script is "safe" for the system. It just gets text files as arguments and outputs a text file, in the same folder. I don't want the user to be scared by this permission request. Is there any

HTML transient modal window

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 09:33:10
问题 We have a legacy web application. At various places it opens a window with the help of Privilege Manager on Firefox to get the needed result. Some of these windows open a Java applet or a PDF document. The client machines are updating Firefox and Privilege Manager is gone. What is the easiest way around it? The problems are : There must be only one instance of the pop-up at anyone time. This could be done by selecting appropriate window name on window.open() call. If the window is opened

Error: ORA-00955: name is already used by an existing object in Oracle Function

こ雲淡風輕ζ 提交于 2019-12-11 08:56:54
问题 I have function which i am trying to compile and getting an error as Error: ORA-00955: name is already used by an existing object . I am really not aware of this error and try to search for this issue but did not find any solution. I dont know is this related to any grant priviledges but i dont have priviledges issue to my schema tables. create or replace FUNCTION "AK_CHECK" -- PUBLIC (ID Number) RETURN Number IS TYPE_ID Number := 0; SUCCESS Number := 0; S Number := 0; BEGIN SELECT ACTIVE(ID)

C# how to run a process(with arguments) through an administrator elevated cmd

半腔热情 提交于 2019-12-11 08:33:54
问题 ProcessStartInfo procStartInfo = new ProcessStartInfo("cmd", "/c " +"processNeedToRun") { RedirectStandardError = true, RedirectStandardOutput = true, UseShellExecute = false, CreateNoWindow = true, Verb ="runas" }; I use the above code to run a process through cmd in C#. However, the problem is: "processNeedToRun" needs arguments when running. Even i set Verb ="runas", Windows 7 still prompts an elevate dialog. Is it possible to meet all the requirements? 回答1: If the process that's launching

Request admin privileges to edit system files

本小妞迷上赌 提交于 2019-12-11 03:19:58
问题 New to C#, I'm developing a windows form application inside visual studio. The app uses ICSharpCode.SharpZipLib library to update a zip's content. When the zip file is inside a non system partition, say like D:\myzip.zip the files gets updated correctly. But, if the zip is in the system partition, C:\myzip.zip the app returns an error; Could not find file C:\myzip.zip even though the file is there! This has to do with admin privileges because when I run the app as administrator it works. The

Codeigniter: Controlling log in privileges with inheritance

坚强是说给别人听的谎言 提交于 2019-12-11 02:40:50
问题 I'm looking to do log ins with my codeigniter project. Some considerations: 1) There are two controllers that are outside that do not require authentication. One for information (splash_pages and such), and the other to create a logged in session. 2) All other controllers inherit from a master Controller that as part of its constructor, requires you to be logged in or it kicks you to the log in screen. So far the above 2 works fine for logged in vs logged out. In terms of code: The master

Oracle alter table insufficient privileges

≯℡__Kan透↙ 提交于 2019-12-11 01:02:52
问题 I have just installed oracle 12c and then i am trying to grant user various rights. I am logged in as system and i had given rights for create user which worked. However, while granting rights for alter table it gave me error ORA-00990: missing or invalid privilege Researching on this problem brought me to another post on SO. The Comments on this post indicated that it is because i am not logged in as GLOBAL user.However i don't know how to log in as GLOBAL user. Do i have to create one ? Is

Protect Stored Procedure

本秂侑毒 提交于 2019-12-10 23:09:25
问题 I would like to know if there's a way to conceal the text of a stored procedure from certain users. I'm working with MySQL 5.1.48 and Net Connector 6.2.3 with Visual Studio 2008 SP1. I have two users in MySQL, one is root (with all privileges for administration porpuses) and the other one is admin (with select, update, insert, delete, create_temp_table, lock_table and execute privileges in a specific schema). All the stored procedures have been created by the root user, so the admin user can

which privileges should be set for website database user / client in mysql

谁都会走 提交于 2019-12-10 21:49:09
问题 So what privileges should be set for the mysql user that is to be used as 'main' user for the website? I'm thinking data and structure ( see below ) for the database that is used should be set. But do i need to add administration rights also? And would this be any different if you own a web server and grant privileges to a client that for example want you to host an website for them giving them rights to use phpmyadmin on there own databases. Data SELECT INSERT UPDATE DELETE FILE Structure