I have a program that's creating a secure directory for user output. This is working correctly, but the files I create in it (or copy to it) are ending up with only administrator access.
DirectoryInfo outputDirectory =
baseOutputDirectory.CreateSubdirectory(outputDirectoryName,
GetDirectorySecurity(searchHits.R...
I need to display a list of document libraries a user has permission to on an infopath form for a workflow. I can build my list of libraries just fine but I can not for the life of me figure out how to populate (in anyway) the infopath form with the list of libraries and allow the user to somehow say "yes" or "no" to each (checkbox is id...
Is it possible for a C++ application running on Windows to drop privileges at runtime?
For instance, if a user starts my application as Administrator, but there's no reason to run my application as administrator, can I in some way give up the Administrator-privileges?
In short, I would like to write code in the main() function which d...
I'm trying to make my tomcat servlet download a number of files, but I have apache and tomcat running on the same server, so I assume that is why it doesn't work. I've tested on servers not running apache, and all is well.
Here's the exception I'm getting when I try to use new Url( fileUrl ).openStream():
Opening input stream Attempte...
What I'm trying to do is the following:
I want to use Custom Role Provider's role name into a sharepoint group (maybe like visitors) to restrict permissions and users resolved automatically with AD without a login page.
To do that :
I've created 1 sharepoint webapp and 1 extension of this webapp
I've configured my 1 webapp (which zon...
Hi,
I need to determine the sites and webs that a specified user can access in a SharePoint web application via the SharePoint API. Note the specified user is different from the current user that is calling the code. I initially was thinking of making use of the PortalSiteMapProvider, but it does not offer an option to change the user...
Hello
I'm working on a simple .NET application which is supposed to run under IIS6 through CGI. First of all everything works great on my Windows 7 development machine under IIS 7.5. But I'm stuck with “System.Security.Permissions.SecurityPermission” under IIS6.
I've already tried to sign the assembly by the way. But I guess the issue i...
I tried to connect to planetlab node using ssh. It throws me error like Permission denied (publickey,keyboard-interactive). What does this mean?
Here is the verbose of the exception.
> OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL
> 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for * debug...
Hi there,
I mean issue with setting the Worker Process to read/write/modify.
In what scenario/task do we need to use Worker Process for web script?
Currently I only know of 1 scenario>> when a script want to resize image. What else?
How can we easily set WP permission for a particular web folder automatically, so that we can carry ou...
Struggling with a decision on how best to handle Client-level authentication with the following model hierarchy:
Client -> Store -> Product (Staff, EquipmentItem, etc.)
...where Client hasMany Stores, Store hasMany Products(hasMany Staff, hasMany EquipmentItem, etc.)
I've set up a HABTM relationship between User and Client, which is s...
I created a new content type, so it wants me to rebuild content permissions. I clicked the link to do so. It progressed through but seemed to get hung up towards the end. It stayed in the same position for 20 minutes, so hit refresh. I got the following error message:
The content access permissions have not been properly rebuilt.
What ...
I have a Windows Service that requires execute permissions on a DB. On start up I check to see if I can connect to the DB and stop the service if I can't. I also want to do a check to see if I can execute a stored procedure using that connection. Is there a way to do that without actually attempting to execute a sproc and looking at the ...
I'm trying to create a simple Asp.Net page to read Perfmon counters from a remote machine.
When I run the page using the Visual Studio development web server all is well, however when I attempt to run the same page when its hosted on IIS I get an access denied error on the line that instantiates the Perfmon counter:
PerformanceCounter ...
I need a script that takes a single command line argument that is a directory path. The script should check the argument to determine if it is in fact a directory. If it is a directory, then the script should change the protection mode of any subdirectories located in it to 600. If the argument is not a directory, then an appropriate me...
I'm able to create a Virtual Directory in IIS7 using the Microsoft.Web.Administration dll pretty easily in the code shown below but I've been pulling my hair out trying to find out how to give "Network Service" write permissions to the Virtual Directory once it's been created. Can anyone point me in the right direction?
Private Sub Cre...
I've read through the man page of rsync but still can't figure out what are the flags for this requirement:
set 775 permission of new files/directories in destination host
note: local host is windows xp, remote is linux
edit:
i'm using the following flags for the moment.
-rltzC --force --delete
...
I'm a fan of Trac, and of course when I'm just using it for my own, lone, projects I can just give myself full admin rights.
When there are other developers involved, or a not-very-technical manager (or, for that matter someone that is a designer rather than hard-code developer), that needs to be able to keep up with what is happening -...
Clients need to know who can do what in an application. When someone leaves a company or joins it or roles change, application permissions get lost in the shuffle.
They aren't visible, so they aren't noticed.
How can we best represent this to our users so they can see and take action on bad permissions or ACLs?
Is it better to show ...
I am currently making a facebook apps that require to send a news feed using stream.publish function, but it require me to have some kind of permission so I google and end up finding the function called GetExtendedPermission ... I tried to call this in my application but it gives this error.
ActiveX control '8856f961-340a-11d0-a96b-00c0...
How to get a permission mask in Sharepoint 2007?
...