privileges

LsaOpenPolicy Access Denied on Windows 2003

When calling this API I'm sometimes getting an error 5 (Access Denied). I'm using a user with administrative privileges and is part of the Administrators group. The strange thing is that the problem occurs sometimes and then suddenly disappears. ...

how to check if a Windows user can install application? or Is a windows computer member of a domain?

Hi, I am re-implementing auto-update mechanism in an application for internal use in our company. The old system used .exe based installers, which I had to replace with .msi based installer which can work in a Windows Domain. This I have done and works well. Most of users in our headquarter are members of windows domain, but there ar...

How to get admin privileges for editing app.config in C#?

Hello, I've got a program which uses app.config for storing some preferences. The problem is that if the program is installed in C:\program files\<project name> then the changing of preferences is not possible due to the fact that all files in program files\<project name> are available only to administrator. My code: public static...

Hashing SSNs and other limited-domain information

I'm currently working on an application where we receive private health information. One of the biggest concerns is with the SSN. Currently, we don't use the SSN for anything, but in the future we'd like to be able to use it to uniquely identify a patient across multiple facilities. The only way I can see to do that reliably is throug...

Automated testing of privileged operations

How do you unit/integration test code that requires a different privilege level than exists in your continuous integration environment? In my non-root, CCRB-driven build environment, I've got some utility functions that assume privileges that don't hold in my automated build environment: either root privileges or special accounts and g...

Setting up application privileges in MySQL

Say you created a blog application, and it's data is stored in a MySQL database. In your application configuration you set the data source name to myBlog user root password whatever Now, when users start using your blog to access, post to, and comment on threads, etc... I am assuming they connect as root through the application myblog ...

Creating file from CD-based application on user computer

Hi, My app, which is run on arbitrary computer on Widows XP/Vista/7 on arbitrary account (f.e. user with limited privileges) needs to open a file that is wrapped within another file. It can open this embedded file only by file name so the app needs to unwrap the file, store it as another file and then open it. What can I do to be sure t...

AppleScript to create VirtualHost

Hi I'm trying to write an AppleScript which will add new virtualhost by name and absolute path. It works when I try on test files (txt files on desktop) but when I try real files (/private/etc/hosts and /private/etc/apache2/extras/httpd-vhosts.conf) it just does not work. The problem seems to be somewhere around user permissions, but ...

Perforce - how to allow users without checkin privileges to submit patches

Our team uses Perforce for revision control. We'd like to be able to accept patches from folks outside our team (e.g. support engineers) without giving them full privileges to check in code, like the way that open-source projects are willing to accept code from anyone but give full commit privileges to only a few people. Other source-c...

Grant database user folder access

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 ...

What to grant to user to use index of table while quering?

I want to know if oracle uses index when user queries data from table and that user has been granted just: grant select on table to user I want to know if it is needed some another grant to use index... ...

Assembly - Privilege Levels

How can I perform restricted instructions such as IN and OUT from protected mode? I've found out that It would require privilege level (CPL) high enough to perform the IO instruction. How can I run in kernel mode, have IO permission or anything other that may help me? - I would like to have direct access to hardware, without anything bl...

Process.kill() denied in Windows 7 32bits even with Administrator privileges

Hello every one. I'm faced with a weird problem. My application has a simple method that in case IE enters a state were it gets unresponsive this method is fired closing all IE process's and then the application restarts its work with IE. Method code: foreach (System.Diagnostics.Process exe in System.Diagnostics.Process.GetProcesses()...

Why can't I see Tables/Sequences in Toad's Schema Browser?

Using Toad 9.7.2 against a network Oracle DB (10g) I can't see any objects in the schema browser using the account information provided to me by my DBA. Using Oracle 10g installed locally, I see all objects in my local Oracle instance using the account I created which has all privileges. I believe this is an instance where the account p...

Oracle DB - how to display privs across schemas/owners?

Hi, I have a owner A and owner B in the DB. Each of them has its own schemas, etc. If I grant rights to an user from B (so he has e.g. access to some view under A), is there any way how to display privs like this? I mean, one user has some rights under each DB owner and its schematas. The reason for that is that I would need to be sure t...

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

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 sub...

TFS access denied to only one specific domain user

I created a local group user which I added to TFS Contributor/Valid User groups. Anytime if I needed to add a user as contributor, I would add him/her to the local group and the person has the access to TFS; which is until now. Recently a new person got hired and MIS setup the domain account for him. I added him the same way but for some...

Granting access to definite users in Sharepoint 2007 discussions

Is there a way to select users who would have access to discussions in MS Sharepoint 2007? This functionality exists on board level (i.e. you can grant access to definite users to see all the discussions on the board); however, I would like to grant access at the thread level. ...

Launch user mode process from Admin mode process

I have a win32 process running as admin mode. I cannot change the fact it's running in admin mode. I have an executable on my system which I'd like to launch from that admin process, but have it run in user mode. How do I achieve that? ...

Securing database credentials and connection in ClickOnce publish

Hello! I have connection string with sensitive information (user,password) in Application.config.xml file. Now i need to publish this application through ClickOnce. Is there a way to encrypt connection string? On other hand can this be inplemented in database? For example: user connects with access only to fuction that checks username...