using Process.Kill() from an ASP.NET web application...
I get a Win32Exception with text "Access is denied"
googling has several times told me to set permissions. However i don't really understand the Windows XP User system well enough to know how to get started.
At the time the exception is thrown, Thread.CurrentPrincipal.Identity h...
I have a file called generator.php that uses fwrite() to create a result.php on the server (Apache, PHP4).
One of the lines in result.php is a PHP include() statement.
So, in generator.php:
if (!is_file($fname)){
$resultfile = fopen($current_path . "/" . $fname, "w+");
}
fwrite($resultfile, '<?php include($_SERVER["DOCUMENT_ROOT"]...
Short question: how can I test whether or not a directory in my website is in practice writable for the rest of the world (even outside my own machine)?
Context:
I run this website where the hosting provider has implemented an odd security system. To let PHP write files to disk on the (linux) server, the target dir should have write pe...
Last night, I experienced a strange behavior in IE8 as I saw two noticeably different layouts of a page that's being hosted on separate servers. On my local web server, the header markup looked as expected with its left aligned logo and right aligned and stacked utility links, all of which displayed on a centered page. On a staging web...
Hi, I have written a windows service in c# that essentially listens for commands on a specific port and in most cases will create a new Process class and shell execute said task.
I primarily want to use it to launch media. Eg, i have a media file called c:\media.avi -> from a remote client i send "-launch c:\media.avi" and the server la...
Is it possible when listing a directory to view numerical unix permissions such as 644 rather than the symbolic output -rw-rw-r--
Thanks.
...
I need to below permission policy to my files under www folder
664 to all files www recursively
755 to all directories under www recursively
I tried
find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;
But always getting error
find: missing argument to `-exec'
What is the solution?
...
I have a problem with facebook application when my applicatons still under development.
I currently have two developers both have granted permission (I mean when I see the Edit Settings under the additional permission: it does have the tick on the publish_stream, this was asked and granted during the prompted permission dialog). The str...
I have built many web sites and have used a few different ways of setting the permissions on my folders.
I would like to know if there is a definitive configuration for web server directories.
I have listed the folders which I consider to be standard in a typical web site directory, what is the permssion setting required for each one?...
Hi,
I have a custom web application that integrates with a SharePoint (MOSS 2007) solution. I would like to add role-based access to pages in this custom web application, with only users in a specified SharePoint group or with a specific role being able to access them. Other users being sent to the default OOTB web page, giving the mes...
I'm trying to write a function for the Android Platform that will allow me to call 911 without any sort of prompt. I have already added the permission "android.permission.CALL_PRIVILEGED" I just need a function that will dial 911 at the press of a button in my options menu.
...
I'm running as mysql root user on my system.
I can select load_file('/etc/passwd'); no problem
But when I try to select load_file('/var/lib/mysql/mysql'); I get NULL as a result
why? this file is good, I can cat it as root and view the mysql user data, why cant mysql load_file it? Its permissions are the default:
-rw-rw---- 1 mysql my...
I gave the editors such permissions:
auth | user | can add/change user - ON
auth | permissions | can add/change permissions - OFF
Still, when editing, they can change their permissions (and allow themselves actions they shouldn't do). I've found a ticket from 2yrs ago: http://code.djangoproject.com/ticket/6519 and it still works this...
I need a function or method in Python to find the owner of a file or directory?
the function should be link
find_owner("/home/somedir/somefile")
owner3
...
I am able to use this funciton to pop up the dialog. It works fine if the user hasn't granted any permission. After I granted the permission, I refresh the whole application page, the permission dialog show and disappear. Just after the dialog disappeared, it started to redirect to the home page www.facebook.com.
I have checked my setti...
I am developing a site that needs an access permissioning scheme. I am uncertain how I want to structure the scheme, and I am having a hard time finding good resources on determining not just how to implement a permission scheme, but how to plan what the scheme should be capable of doing.
I have lots of questions and not a lot of solid...
I am trying to FTP a RAR (zipped) file to another server but am having problems doing so. This is a Windows environment. I know that my FTP connection is setup correctly because I have already transferred over several other RARs. But the difference from what I can tell is that this RAR that is failing is larger in size. It is 761 MB....
You will laugh if you read to the end of this :) This is now driving me nuts - can't get php to include an existing file with proper permissions set etc.
I have test.php file and "lib/tools.php" file.
I run the following code:
$fn = 'C:\Sasha\ThreeDiamonds\www\lib\tools.php';
if(file_exists($fn)){
echo "Trying to INCLUDE THE BLood...
I get this error when I'm using FileHelpers.dll, but my IIS is set to Full trust level so it should not be that way
That's the full stack trace:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, Permissio...
I'm using the ASP.NET/C# Login control and that entire authentication and authorization system.
I set up the roles and have users go to certain pages when they log into the system dependent on their role. Right now I'm trying to restrict access to certain pages, which is working correctly. However, when it restricts the access to a user...