OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Deleting Archived Submissions / Permission Denied

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Deleting Archived Submissions / Permission Denied

Postby ozcelik » Tue Jun 24, 2008 3:38 am

Hi Alec:

When I try to delete files under the Archives, I get a couple of "permission denied" warnings related with "rmdir" and "unlink" functions like the following:

Warning: unlink(C:/.../uploaded_papers/conferences/14/schedConfs/12/papers/27//submission/original/27-43-1-SM.pdf) [function.unlink]: Permission denied in C:\...\classes\file\FileManager.inc.php on line 267

The delete process removes the name of the file from the Archives menu, but it does not remove it from the server, possibly because of the permission problems. How can I fix this?

Regards.
ozcelik
 
Posts: 26
Joined: Sun Sep 23, 2007 9:25 pm

Re: Deleting Archived Submissions / Permission Denied

Postby smiri » Tue Jun 24, 2008 11:13 pm

Hi ozcelik,

As far as I can tell, this is a permission problem on your files directory. You have to make sure your webserver user (probably "apache" or "nobody") has full access to the files directory.

Regards,
smiri
 
Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: Deleting Archived Submissions / Permission Denied

Postby ozcelik » Wed Jun 25, 2008 2:01 am

Hi Smiri:

Thanks for prompt reply. I am using IIS 6. Should I give "Modify" access to the USERS for the uploaded_papers directory? My concern is that it may lead to a security hole if I do that. Is that so?

Regards,

Jason
ozcelik
 
Posts: 26
Joined: Sun Sep 23, 2007 9:25 pm

Re: Deleting Archived Submissions / Permission Denied

Postby asmecher » Wed Jun 25, 2008 10:11 am

Hi Jason,

Depending on how IIS is running PHP scripts (e.g. as an ISAPI module, FastCGI, or CGI), PHP scripts will run under various accounts. For ISAPI (probably the most common configuration), there's some information at http://forums.codewalkers.com/php-installation-46/fopen-causing-permission-errors-on-iis-46789.html on how IIS manages file permissions. Unfortunately we won't be able to provide more specific help, as we don't use IIS ourselves.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron