CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> General/Other

 Uploading Errors (Persits/Apache/PHP)

Print topic Send  topic

Author Message
maggiemel

Posts: 75
Posted: 03/11/2004, 10:19 AM

I have an older CC application which was using the Persits file uploading component without any problem until sometime last week. Now, when my users try to upload their images, they receive the following error:

Warning: Unable to create 'art/TEST 01.jpg': Permission denied in /home/apps/artweb2/UploadResult.php on line 10

Warning: Unable to move '/tmp/phpOUbymd' to 'art/TEST 01.jpg' in /home/apps/artweb2/UploadResult.php on line 10

Nothing has changed with either the PHP page or permissions on the tmp or art folders, but I do notice (by looking into the /tmp folder) that the script is attempting to write a file (it's got a long name -- something like sess_3da30dda9e99974ea6261627fcf81e62) as "nobody," the anonymous user id of the web server rather than the id used by the application.

Anyone run across anything like this before?
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message
peterr


Posts: 5971
Posted: 03/11/2004, 11:50 AM

Hi,
What do you man by "the id used by the application"? Whose ID should this be?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
maggiemel

Posts: 75
Posted: 03/11/2004, 12:05 PM

Oh, hello there, Peter. Sorry if I'm not being clear. I assumed that the application uses the user id and password stored in the common.php file for all operations. I realize that it's purpose is for access to the db, but I also notice that all the files that had been uploaded by the end-user to the art folder are owned by that user id -- in this case the user id is "isa."

When I was notified that the upload was failing, I took a look at the permissions for the folder (755) and all the images in the folder are owned by isa. Uploading failed. So I changed the permissions to 777 and was able to upload an image, however, the file ownership was not isa, but "nobody," which is our anonymous login user id.

I'm wondering if there were some kind of reconfiguration on the server because I haven't touched the code for the application in over six months and the latest files were uploaded at the end of January.

Any clues?

Thanks, as always, for your help...
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message
peterr


Posts: 5971
Posted: 03/11/2004, 12:21 PM

Well, I'm not aware of any user id and password stored in common.php, except the database user, and the functions that dynamically create sessions corresponding to users' logins.
It looks like someone (or something) changed the folder permissions to the user "isa". Or possibly a backup process restored the files with wrong permissions, a user copied the folder manually, etc.

All Web servers are designed specifically to treat all Web users as anonymous users. I don't even see how it could be possible for someone to create some files on the disk using their actual login, user name or id. The Web server doesn't really know who is logging in via the browser. Anyone who is using a Web browser can only be seen as an anonymous person.
The IIS Web server utilizes special annoymous user category for this: "IUSR_computername" or "ASPNET" for .NET. I'm not sure what Apache is using in Windows but "nobody" looks OK to me.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
maggiemel

Posts: 75
Posted: 03/11/2004, 12:27 PM

Well, looky there -- I'm sure that's the problem. Last week there was a major change to the public portion of the site and I'll bet that the permissions were changed when the folks upstairs moved or copied their tree.

Thanks, Peter.

Gratefully,
Mel
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.