permissions

killing a win process from a C# console application: How do I set permissions?

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...

PHP4 problems with include() within a file created by fwrite()

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"]...

Security test for writing to remote directory

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...

Different Layouts in IE8 on Different Web Servers

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...

Question regarding executing context for a Windows Service

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...

Can the Unix list command 'ls' output numerical chmod permissions?

Is it possible when listing a directory to view numerical unix permissions such as 644 rather than the symbolic output -rw-rw-r-- Thanks. ...

Setting file permission for Files and Directories

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? ...

Facebook permission error problem?

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...

Is there a standard permissions scheme for web server directories?

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?...

Prevent Access to Custom Web Application Pages by Non-Admin Users in SharePoint

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...

Dial Number Without Prompt

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. ...

can't load_file data in the mysql directory

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...

django admin permissions - can edit user but can't edit his permissons - how to do it?

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...

how to find the owner of a file or directory in python

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 ...

Problem with facebook showPermissionDialog

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...

Resources of designing a website permission scheme

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...

FTP permission denied error

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....

php won't include an existing file: permission denied

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...

IIS7 Failed to grant minimum permission requests

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...

ASP.NET Roles and Permissions

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...