permissions

Accessing Network Share Generates "Failed to start monitoring changes to '\\share' because access is denied."

I have two web applications both on the same IIS 7 box. One application is running in an app pool with .NET 2.0. The other is running in a different app pool with .NET 4. Both are running as the app pool identity and have identical settings. Each contains a virtual directory of a network share. To access the share, a username and passwor...

Configuration Error - Insufficient Permissions

I just downloaded the template for DotNetOpenAuth 3.4 and created a new project from the template. Open starting the web server in Visual Studio and launching the setup page I am greeted with the following error after providing my OpenId: Configuration Error Description: An error occurred during the processing of a configurati...

Modelling a permissions system

How would you model a system that handles permissions for carrying out certain actions inside an application? ...

Alternative to policy files when granting permissions?

Is it possible to grant Permissions through something other than a policy file? What I'd like to achieve is a permissions-based system that can be modified at runtime. ...

Windows service permission to read shared folder

Hi, I'm trying to run a windows service that reads a file in a shared folder in another server. The problem is that the computer where the service runs is in a different domain (say DomainA) than the computer where the folder is shared (say DomainB). If I go to the computer in DomainB, I can't assign permissions to users in DomainA, beca...

Design patterns for enabling user interface elements based on user permissions?

We have a web application and its front end is implemented with GWT/GXT. Users can belong to various groups and these groups can then have various permissions. The permissions are quite fine grained, for example comment_create, comment_edit, comment_delete and comment_read. What would be the best way to enable and disable user interface...

Adjusting PDF restrictions with PHP

I have a user uploading a PDF to my server, is it possible to adjust the PDF restrictions via PHP to not allow printing, copying, etc? Many thanks. ...

Set MSMQ permissions using VBScript (via Nant)

We are using Nant to deploy an application and need to create some MSMQ Queues during the process. We use Nant/psexec/cscript to call a VBScript to create the queue itself but we also need to set the permissions. Can this be done programmatically? I am aware of Setting permissions on a MSMQ queue in script however that question asks ...

SQL Server elevated permissions with integrated login

I have an application running in IIS which connects to a SQL Server 2008 R2 instance using windows integrated authentication. This application does simple read/write operations in the db using a set of stored procedures. I can restrict the privileges in SQL server quite well for this login/user combination. But for a small subset of the...

Cannot access INI files in "Program Files"

I wrote this C++ application that needs to check an INI file (“preference.ini”), and eventually modify it (e.g. if the user does not want to see the introduction form anymore). I created it in WinXP, and it works fine on the system where I compiled it (in many locations, including “Program Files”). Problem: In Win 7, it works fine if ...

How to allow FileUpload to access a private folder in ASP.NET?

Hello everyone I have a FileUpload control in my ASP.NET application, and I want to save the users files in a private folder. When I say "private folder", I mean that in my web.config I have the following for every directory in the application: <authentication mode="Forms"> <forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH"> </fo...

Managing specific document access depending on a users permissions or role they belong too.

I have 2 users, Martin and John I have 5 documents, all available to Martin and John. I also have 2 documents that are available to John only (Martin must not see them). To complicate matters these documents should replace 2 of the existing documents from the original 5 - so that only 5 documents are ever displayed to Martin or John. J...

Windows file permissions affect subversion read/write privileges

I recently set up a repository using VisualSVN Server. It uses Windows Authentication. Some users are having problems committing projects to the repository. (They have no problems checking out repositories). The BUILTIN\Users group has read-only access for the entire repository and the individual users have read/write permissions setup ...

git --shared permissions reset

I have a whole bunch of git repositories in /srv/git manually administrated (not using gitosis), which I have obviously buggered up the permissions for, since I now get error: failed to push some refs to type errors, after some poor chmod invocations on the server. I also mistakenly added +x to all hooks and I need to remove that and ad...

Configuring permissions for JNLP:

I'm trying to run a webstart demo, which ran on my friend's Windows machine, but throws an access error on my Ubuntu Linux box. javaws http://common.l2fprod.com/jnlp/demo.jnlp And I get the following error on my Linux box: java.security.AccessControlException: access denied (java.util.PropertyPermission javawebstart.version read) ...

Permission denied using wicked_pdf from ruby on Windows 7

ruby -v = 1.9.1p378; rails -v = 2.3.8 wkhtmltopdf works just fine from the command line - generates a PDF. The path to the .exe is in the %PATH% variable as well as specified properly in the /config/initializers/wicked_pdf.rb file. Set up the controller action to handler .pdf format but I get the following error Permission denied - c...

NAnt: get task permission denied

Hi, I'm trying to use the NAnt <get> task to download some artifacts from our build server. However I'm getting permission denied to the destination folder even though the folder I'm downloading to has "Everyone" with full control. What's going on? ...

Folder permissions based on users and groups

Hey Im working on a folder tree and need to be able to limit the visibility of certain folder based on the user and the group they belong to. I already have a database representation of all the folders in the tree and the hierarchy of the folders. My question now is how to best represent the permissions. If I have to possibly look up p...

set permissions on users mysql with wildcard?

normally one would say: GRANT ALL PRIVILEGES ON . TO 'monty'@'%' Can we use a wildcard where we can target specific databases only like this: GRANT ALL PRIVILEGES ON SHOP%.* TO 'monty'@'%' We would like to give insert privileges to a user on databases that start with prefix "SHOP" ...

What are the differences between "Run as administrator" and a manifest with requireAdministrator?

I've written a program with a manifest that includes requireAdministrator. On Windows 7 systems with UAC enabled, Windows pops up a dialog asking for permissions, as it should. Works great. If a user starts my program by right-clicking it and choosing "Run as administrator", then Windows 7 also pops up a dialog asking for permissions....