I am running a Sql statement similar to the following inside of a cleanup method of a unit test in Visual Studio 2008:
DELETE FROM MyTable
WHERE EmployeeID = @EmployeeID AND UserID = @UserID
...
@EmployeeID & @UserID are assigned appropriate values via parameters in an SqlCommand and ExecuteScalar() is called to execute the statement.
...
I have a server that I'm setting up over a named pipe. It works fine for administrators of the domain, but when I test the client on a normal user, it gives the exception "Access to path is denied". So here is what I'm trying to set the permissions to give access to all authenticated users in the domain. What am I doing wrong here?
S...
I'm attempting to use WMI to access a registry remotely via powershell. I'm using the following code to do this:
$regUserPass = ConvertTo-SecureString -string "secret" -AsPlainText -Force
$credentials = new-object System.Management.Automation.PSCredential("username", $regUserPass)
$wmiReg = Get-WmiObject -list -namespace root\default -c...
I have OS X 10.5 with about 40 websites in the Sites directory. I just downloaded one from my server to initialize a local copy but I am getting denied access. The permissions seem fine but Apache is still giving me the 403. Any ideas why this would happen? Does it have to do with me downloading the files from the internet?
drwxr-xr...
Im trying to create a synchronization between [Unfuddle][1] and my local server so that when there is a SVN commit on Unfuddle, my local server's code automatically gets updated. Unfuddle provides a callback and I can get the callback when a commit is made.
Now my webserver runs as the user called "apache", but all the files that are ex...
Hi,
I currently have an svn server running on a machine to which multiple users have root access. For the svn repository I want to use per-directory access control. So I user the mod_dav module with apache and specify permissions in /etc/svn-access-file
The problem is that since multiple users have root access, then can potentially modi...
Hi,
I had a perfectly working svn+apache install where I was using per directory access control to restrict access to various parts of the repository. In particular, no one had access to the top level in the repository [/]. People had access to folders like [/www] etc. I was specifying these permissions in a file (svn-access-file).
I h...
I just learned to install Apache 2 on my ubuntu linux localhost for the first time. I'm making it work with PHP5.
I noticed that anytime I want to write to a file or directory, I have to chmod 777 the destination.
But from my experience working on 3rd party hosting solutions, I am generally allowed to write to files and dirs that have...
We have a .NET web application installed on our server at the location: C:\Inetpub\fmtool\
One of our utilities uploads a file to a subfolder of the installed directory.
We create the folder structure for this uploaded file programmically to ensure the folder structures integrity. This works just fine.
However during the actual file...
Hi,
I have this small app that loads plugin type components that other users can freely upload to the server. But I don't want the users to be able to access other users files. I need to set the access of each plugin component to a restricted access.
I tried to set the access inside the plugin classes base class but even then the loade...
Hi guys,
I got stuck with this. I need to get permission info of NTFS files with Java or C++.
Those info should be stored in Access Control List (ACL), but I don't know how to retrieve them with Java or C++.
Thanks for your help!
...
We are using the ASP.NET 1.1 version of dtSearch and are having an issue that is affecting our users authenticating with Active Directory (AD). This issue also is affecting another custom, in-house .NET 1.1 DLL in the same websites.
When a standard user hits the search after a period of inactivity the site will give the error below. A...
I am trying to setup my webserver so that one group will have access to the files. Apache and every user that needs to edit the files will be part of this group. So I've set all the files to have the group psacln. I've added psacln to my groups. But it still won't let me view the files:
[tom@166 httpdocs]$ whoami
tom
[tom@166 httpdocs]...
i have one problem
when i run my program in delphi7
have one error message
"unknown table type - permission denied - file:c:\PDOXURS.NET direcory C:\"
i dont know of make
tk for one answer
...
So I have file that is in folder in website folder structure.
I use it to log errors.
It works when ran from Visual Studio.
I understand the problem. I need to set permissions on inetpub.
But for what user ? and how?
I tried adding some IIS user but it still can not write to the file.
So I am using ASP.net
Framework 3.5 SP1
Server is...
I am stuck with that task.
I've written svn post-commit hook, that should update working copy on server, if something was changed. But seems to be it doesn't have permissions on that folder, but I've set them to allow everybody to write and read there.
So here is the test script:
#!/bin/sh
REPOS="$1"
REV="$2"
DIR="/root/root/trunk"
...
Hi,
Does anybody know how I can programmatically check (using C#) whether my program will be able to read / write a particular registry key (specifically: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run")?
I am asking because my program has the option to enable or disable the 'run at startup' behaviour. I want to disable this option if ...
For some device users, on startup they are presented with the following permissions dialog
"Would you like to grant AppX trusted application status?"
The user says yes and the app runs fine. But what does "trusted application status" mean? This seems really ambiguous, most permission dialogs refer to making a http message, accessin...
I am using inno setup to make a installation package for my application, and my application is written by C# + .Net 2.0 + VSTS 2008. Inno setup => http://www.jrsoftware.org/isinfo.php and I install my application under Program Files/Foo folder (Foo is my application name). My application is targeting to Windows Vista.
The issue I found ...
I'm trying to write an (trusted) applet based installer that registers my code as a URL or MIME handler, so that it can auto-open whenever the user clicks a particular link. Do I need any special permissions (apart from the applet being Trusted) and does it pop up a massive number of warning boxes?
...