permissions

NonPublic causing a permissions error in reflection on medium trust

I must say that so far, I've probably just been darn lucky in that I've never come across the problems associated with a web site running in medium trust. I've only ever developed intranet apps or happened to have use a hosting company that runs in full trust. But the host I've been asked to use for a recent project runs at medium trust ...

subversion prevent listing of a repository in folder with SVNParentPath

Hello, I have several repositories setuped on my domain at: svn.domain.com and i have it so it will list the repos by the SVNParentPath configuration. And now i would like to create user permision for each folder / repo, but i want to remove that repo from the listing if a user does not have permision to access it. This is mainly for ...

SharePoint/WSS: Modify "created by" field?

All - I am using WSS 3.0. Currently, HR will upload an employee's internal company resume to a document library on our site, but for privacy reasons, we must then restrict access to that document library, which forces users to then go through HR each time they want to update their resume. My thought is to create a list with attachment...

Vista permission denied programdata

I'm trying to add a tool to Visual Studio and it is a DOS command line utility. The command line args require a path to a config file. It seems that no matter where I try to store this config file, the command line utility can not get permission to open the file. I tried C:\ProgramData\Utilities\JavascriptLint\ C:\Users\\AppData\Local\Ut...

Scripts(iframes and javascript) being added to site

My website is being hacked. iframes and JS is being added even after I have been manually searching for and removing them for the past couple of days. Why is this happening and what can I do to prevent it? I have set all index files to permission 444 and most other files to 644. There are a few pages that have flash content being added...

Programmatically adding security permissions to files in C#

Hello, In an asp.net app, I have a task that ftps some xml files down to a local folder on my computer. I then want to read those files but when they're copied to my local folder, they don't have the Network Service user account set up. So, my question is how, in .Net C#, do you programmatically add the "Network Service" account with fu...

How can I check the permissions of a user for an specific element on Sharepoint?

Hi! How can I check if a random user (not the current user, I know only his/her username) has certain permissions on a specific SharePoint list item, list etc.? Best Regards Oliver Hanappi PS: I'm accessing SharePoint by its web services. ...

Is there a file-based equivalent to .htaccess in IIS6? (not config/plugin)

There are lots of similar questions to this, but they all seem to involve either configuring permissions or installing a plugin. I'm looking for a solution that is "dumb" - i.e. to allow the code to be deployed from source control and automatically have access to certain paths blocked, without anyone needing to configure the server. I ...

Strange Blackberry Issue - New Build Suddenly Requesting Permission Access

During development testing of my app I'm running into a strange issue where new builds (Build 2.0) of the exact same code base suddenly default permissions (carrier internet, gps) to be Prompt rather than Allow on install. Details -- Same code base So there exists two builds, both with the same code base. Build 1.0 was made/signed last ...

SQL Server Profiler - watch for permission denied on objects?

I'm using SQL Profiler to watch some database activity, and I'm interested in watching "Permission Denied" for various objects in the database. There are about 50 different items in the "Security Audit" category, but none that seem to display "Permission denied" for an object. I can see Login Failed, and a few other failures, but nothing...

Dynamic User Menu in Django

Is there a way to have a user menu that'll change according to the permissions assigned to the user group a user belongs to? I'm thinking of something that checks for these permissions at the view level, and also removes menu options a user doesn't have permission to. ...

Unable to Connect to Tomcat Using VisualVM

I am having problems monitoring a remote Tomcat process. I'm trying to use the Java 6 versions of JConsole/JVisualVM. I have jstatd running on the remote server with the appropriate security policy. The process is started and the TCP connections are available. When I try to connect through JConsole, I get 'Connection Failed:jmxrmi'...

Get user group in a view

I want to display a menu that changes according to the user group of the currently logged in user, with this logic being inside of my view, and then set a variable to check in the template to determine which menu items to show....I'd asked this question before, but my logic was being done in the template. So now I want it in my view......

Is it possible to make a read only directory in windows XP?

According to http://support.microsoft.com/kb/326549 the read only attribute is typically used for reasons other than marking a folder as actually read-only. Therefore it seems to me that it is not possible to make a directory read only in the same sense as linux using chmod a-w. ...

How do I set file permissions in Maven POM file

I need to set "execute" permissions on a file which is a part of the WAR project. Can I do this without resorting to Ant script? ...

What to do when bit mask (flags) enum gets too large.

I have a very large set of permissions in my application that I represent with a Flags enumeration. It is quickly approaching the practical upper bound of the long data type. And I am forced to come up with a strategy to transition to a different structure soon. Now, I could break this list down into smaller pieces, however, this is a...

How to hide, disable calendar list item fields in Sharepoint

I want to hide or make some fields read only on editform.aspx. I follwed the example on this page, but without deliting the "original" webpart list. I hide the original webpart and created a new custom list from the original list. Then i was able to apply xsl on the custom list to hide or to make the field "read only". Unfortunately the ...

SharePoint list item permissions

I want to programmatically make it so that users can see only particuar items on the list. Basically in an workflow that runs when an item is created I'm going to do some stuff and notify some people about this item. I also want it to change the permissions on the item so that only particular users (looked up on runtime based on the it...

Blackberry Permission Questions - "Prompt" acts differently on different devices

I have a few questions about permissions and prompts. Most importantly this has to do with making a data connection and using GPS QUESTIONS 1. Prompts & Allow - Remove Notice?: When installing my app (signed) on various devices, some devices prompt the user about making a data connection and some do not (the connection is just made). I...

How does git handle folder permission ?

Hi there, I'm using git version 1.5.6.3, and it seems git doesn't notice a folder's mode changes #create a test repository with a folder with 777 mode :~$ mkdir -p test/folder :~$ touch test/folder/dummy.txt :~$ cd test :~/test$ chmod 777 folder/ #init git repository :~/test$ git init Initialized empty Git repository in ~/test/.git/ :...