privileges

Sharepoint: executing stsadm from a timer job + SHAREPOINT\System rights

Hi, I have an unusual situation in which I need a sharepoint timer job to both have local administrator windows privileges and to have SHAREPOINT\System sharepoint privileges. I can get the windows privileges by simply configuring the timer service to use an account which is a member of local administrators. I understand that this is not...

PostgreSQL 8.3 privileges not updated - wrong usage?

Hi, I'm having trouble granting privileges to another user in PostgreSQL 8.3. While the GRANT command gives me no error, the privileges do not show up. Do I need to "flush" them? sirprize=# CREATE DATABASE testdb; CREATE DATABASE sirprize=# GRANT ALL PRIVILEGES ON DATABASE testdb TO testuser; GRANT sirprize=# \c testdb You are now conne...

How does a program ask for administrator privileges?

I am developing an application using vb.net. For performing some tasks the application needs administrator privileges in the machine. How to ask for the privileges during the execution of the program? What is the general method of switching user accounts for executing an application? In other words, is there some way for an application ...

How does a program ask for administrator privileges?

I am working on a small application in VB.NET. The program needs administrator privilege for doing some tasks. Is there a way to ask for administrator privileges during the execution if the program? What is the general way of changing the user account under which the application is running? ...

What database privileges does a Wordpress Blog really need?

I am setting up a few Wordpress blog sites. I have created a user in mysql that wordpress will use to access its database. The docs say to give this user all privileges on the database. Does it really need full privileges? I expect not, so does anyone know the min set of privileges that it really needs? ...

Does full trust mean the same as Run As Administrator

Does full trust mean the same as Run As Administrator? I have read things stating that "for this to work, the application must be a full-trust application." Is that the same as you must have administrator privileges to run the application? If not, what's the difference? How can you tell if an app is "full-trust"? I am told that "Adm...

User Privileges

Why does a user needs privileges over his own schema to create packages and triggers? ...

Mark an Active Directory Object as "Read-Only"?

We had a bad day yesterday. One of our Domain Admins deleted an OU containing 700+ users and the same amount of computers as well as assorted other useful things like groups etc. We restored from a backup, but it wasn't pretty. I know that ADUC asks you if you're sure etc... but I'd like it if it was not possible to delete this partic...

In MySQL 5.x, is it possible to give permissions based on conditions (not using views)?

In a project I'm starting I would like to give privileges to users based on certain conditions, eg (in a certain table): can READ all rows cannot WRITE to rows with id < x, but can WRITE to row >= x etc... I would like to avoid views as these conditions might change for each user (I understand I would have to create a view for each c...

Best way to know if a user has administrative privileges from a VBScript

As the title says I need to check whether the user executing the script has administrative privilages on the machine or not. I have specified the user executing the script because the script could have been executed with a user other than the logged on using something similar to "Runas". Regards, Javier @Javier: Both solutions work i...

Providing MySQL users with just the minimum privileges

For a web application, when creating the user which will connect to the MySQL database, you have the choice of privileges. Assuming that the only actions intended to be done by that user are SELECT/INSERT/UPDATE/DELETE, it seems to make sense to only provide those privileges, however I've never seen that recommended anywhere - what are t...

On Windows XP: How to create an User that has no read access to any directory besides one certain directory?

Hi, Let me state first: I know that any user that wants to run a program (or even log in), has to have access to (probably at least) the Windows system directories and the shared libraries in %ProgramFiles%, but I'd like to be able to contain Skype, for example, by running it with an unprivileged user and make sure that it can't access ...

Can I place the .NET framework on a machine without needing admin privileges?

The application that I'm building requires the .NET framework. Unfortunately our end users will not have admin privileges. I know it isn't possible to install .NET without admin privileges, but is it possible to build a pre-packaged version of it into our system so the user doesn't need admin privileges? If it is possible, how would I...

Read user rights using VBscript

I'm trying to determine whether a user (the one running the script, with or without run as) has certain user rights policies applied. Since secedit /analyze refers only to the actual setting and ignores privilege propagation by group membership, it is useless in this case. I'm referring to these privileges: SeTcbPrivilege SeIncreaseQuot...

How can I tell if my process is running As Administrator?

I would like to display some extra UI elements when the process is being run as Administrator as opposed to when it isn't, similar to how Visual Studio 2008 displays 'Administrator' in its title bar when running as admin. How can I tell? ...

Why do profilers need administrative privs (on Windows)

I've been evaluating profilers and memory checking tools for native C++ programs on Windows and all of them want to be installed and run with administrator privileges. I rarely log in as admin on my machine. If I need to install something or do something that requires administrative privileges, I use runas and it works pretty well. Is i...

Detect if running with administrator privileges under Windows XP

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

How to elevate privileges only when required?

This question applies to Windows Vista! I have an application which normally works without administrative privileges. There is one activity which does need administrative privilege but I don't want to start the application itself with higher privileges when I know most of time user wont even be using that feature. I am thinking about c...

Calling CreateProcessAsUser from C#

I've been attempting to create a new process under the context of a specific user using the CreateProcessAsUser function of the Windows API, but seem to be running into a rather nasty security issue... Before I explain any further, here's the code I'm currently using to start the new process (a console process - PowerShell to be specifi...

ServiceController Required Privileges

I'm using a ServiceController to Start services on a remote machine. When I want to query the services on that machine, I get the following exception: Cannot open Service Control Manager on computer 'machinename'. This operation might require other privileges. What privileges are required to query/start/stop the services on a remote ma...