file-permissions

Image file permission - image resizer

PHP mySQL Hi, i am having an interesting problem. I have a form in my cms that allows the admin to upload images to the server. The script resizes the images to a thumbnail (170px height)and a large image(600px height). The thumbnails are around 16000k in size and the large images are around 160,000k in size. I do not set file permis...

PHP Cannot write to file even though it has 777 permissions

Im trying to make a php file write to a file that resides in the same folder. Both the php file and the file its trying to write to have their permissions set to 777 (its a linux server) as well as the folder they reside in. Whenever I called fopen() with the 'w' or 'w+' mode, the function just returns false. Its on my school's webser...

Taking ownership of trustedinstaller files?

vista32-sp1: I am unable to delete some files on my system that were installed with 'special permissions' by 'trustedinstaller'. I find the usual help suggestion to use 'takeown' is not working, all I get is access denied. I refuse to believe there isn't some way to delete these files. ...

Make a folder in SVN writable so that when the repo is checked out, the permissions are already set to writable?

I'm not a Subversion pro by any means. But I am using it for my coding projects and using the deployment feature at springloops.com (love it). I have some log, cache and image folders that I routinely need to make writable on new deployments or new projects. Is there a way to make it so that when deploying or downloading, the folder p...

IIS6: Disallow a particular file extension from being downloaded

[I posted a similar question on serverfault.com, but had very little feedback so trying here] I can do this just fine under Apache with htaccess. But at work its all M$ all the time... I need to lock off access to any .fla files that might come up on a virtual host. We keep them next to the few .swf we use on some of our sites, I j...

Is it possible to File.Copy a file into a system folder? like System32?

I need to create files inside of a specific folder ("C:\Windows\System32\oobe\info\backgrounds") and possibly create said folder. When I try this with the File.Copy command windows won't grant the program permission, just throws an error. I am writing this in C# with VS2008. EDIT: Windows 7, forgot about that part. ...

require_once(../../path/to/script.php) failed to open stream permission denied

See an example here: http://mattpotts.com/portal/ I put an includeme.htm in each directory on the required path to find the point of failure. It works fine on my local machine (windows) with the same directory structure but fails on my remote (linux) server. Directory structure: +-firefli/ drwx--x--x +-private_html/ ...

Is it safe to store data in XML?

We are developing an application and it demands storing data in XML coz it will be used by another application. now question is would it be possible to restrict access to that xml file. and make it readable only through our application? if yes.. how to do it? ...

Solutions for the potential lack of permission to mkdir() from within a php install script.

Alright, so I have a problem. I need to create a folder to store compiled templates in php. I have an install script that tries to mkdir() an appropriate directory (compiled_templates). Invariably it returns this warning. Warning: mkdir() [function.mkdir]: Permission denied in /home/tchalvak/sites/quotesite/quotes/install.php on line...

Suggested file location that will be editable by all windows users?

I'm building a product that involves a windows service caching data on the local machine, user processes reading that data and writing their own data, the service in turn writing back that data to a server. Where should I put the data files for this, such that they'll be shared by all users and read/writable? The software will op...

How to Copy Folder to System folder in Cocoa

Hi, I am developing an application in cocoa which needs to copy a set of files to the system folder. When copying files to system folder I am getting a "Permission denied " error message . How can I resolve this problem. Please any one help me... Thanks in advance ...

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., a...

Apache+PHP write permissions on unix

I'm trying to launch PHP site with apache on fedora and I have a problem about writting permissions. It looks like apache does not have write permissions to some folders, but I canno understand why. I've checked httpd.conf and it has group: apache, user: apache. I then made: chown -R apache:apache www and set 777 permissions to the fol...

file permissions messed the site! what is the best permission? 644? 744?

Hi friends, just messed the websites at host by changing permission settings :( none of sites are working now!!! it gives Forbidden You don't have permission to access / on this server. error! how can i fix it?! should i make files' permissions as 644? thanks!!! ...

How to set folder permissions with .NET?

Is it possible to use a small .NET page to set folder permissions on some folders on the server where it resides? What is the code or objects that can be used for this? I am on Windows Server 2003. Basically I want to hit the page with a GET or POST and have it run and check and/or update the permissions on a folder. ...

Alternative to SetNamedSecurityInfo to force a file to refresh its inheritable permissions

I'm having a problem where we create a file in temp and then move to our application directory, and we've found that a moved file does not inherit permissions from its new parent folder. I know I could use File.Copy (as creating a new file will inherit the permissions), but for performance reasons we don't want to do this. The site ref...

SVN can't add Apache created folders

I am building a Joomla site that is managed by SVN. When extensions are installed via the Joomla admin panel, Joomla will create folders that I want to add to SVN, but these folders are created by the Apache user and I do not have write permission or root access, which prevents SVN from adding '.svn' directories within. Is there any work...

Correct folder permissions for Symfony on Linux ?

I have moved my XP installation of Symfony (1.3.2) to Linux (Ubuntu 9.10). I now get a blank screen. Upon checking the Apache log files, I realised that apache daemon did not have permissions to create the cache folder. I used chgrp and chown to manually assign permission. When I then accessed the homepage, I got a 403 forbidden message...

Permission issues across servers in powershell

I wish to have an automated process that basically deploys (copies) a asp.net web site in a CI situation. I have built the web site and I then want to copy the code to the web server. This powershell code is running on my build server. the build server is running under a defined service account and i have given that account full control ...

UnauthorizedAccessException While Attempting to Change File Permissions

I trying to modify permissions programmatically using a C# windows service that is running under an administrator's account in windows XP. Another program is saving and modifying files on the local file system, in way that, after that program touches something, only the "SYSTEM" account, there after, may access it (unless I manually ch...