i would check the permissions of the parent directories.
also, if you happen to be writeing to a samba or sharity share permissions tend to get wacky from time to time.
being it happens at a semi regular intervel. (look like every 6-7 hours or so)
is it always the same upload directory you are haveing any errors? or is it always a random user in a random directory?
implamenting a new function to chmod the file in perl should just be adding a new function that accepts 1 paramerter and that should be the fullpath to the file.
at a command prompt umask -S should show you the current umask perms in a more readable format.
Thanks for the advice. To answer your question, it's always a random user in a random directory. We're about half-way through changing our scripts to manually chmod the uploaded file, so I think I'm going to just let this problem go. I have one last thing to post; maybe this will be the secret ingredient needed to figure out this problem. We ran into the problem consistently again (which makes it roughly every 3 hours now), so I did
and restarted apache. We had tried this a couple of weeks ago and it fixed the problem then. Again, it fixed the problem. So I did
I'll load those files zipped in case anyone wants to look at it to see if they can figure out what the problem is. It looks to me like the same processes are running at both times, which makes me all the more confused. Thanks everyone for helping me out with this.
No, we don't get errors with those scripts. I've always been curious why they occasionally come up as scriptname <defunct>, but have never really payed attention to it because they always work.
So I started roaming around looking for apache httpd bugs and found one that says
Quote:
mod_cgid in Apache before 2.0.48, when using a threaded MPM, does not properly handle CGI redirect paths,
which could cause Apache to send the output of a CGI program to the wrong client
We're running apache 2.0.40. Does that mean that when these files are being uploaded they could be given the umask of a user that doesn't exist, which in turn would give the file the 600 permissions?
since the snipit specificly says that STDOUT can goto the wrong client when useing a redirect i would lean toward no i dont think this would be the problem. But it would be unwise to rule it all out.
I used the following code, which I found on the internet to upload files.
<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="upload2.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input... (2 Replies)
OK i am completely new to this stuff!! let me start from the beginning!!!
I Am connected to Whatbox.ca Via SSH!!
Then I installed plowshare using their guide perfectly
Now They Told Me To refer Plowshare site's Command list for uploading any files to Various... (4 Replies)
I am working on to uploading Video files on Mediawiki and embed to page but not getting success. I tried plugin like MediaPlayer and HTML5Player but these plugins seems having extension limitation as i need to embed files like .wmv, .mpg etc.
I am using mediawiki1.17 and CentOS5.8 x64 bit
... (1 Reply)
Hi
The below script used to work fine. Suddenly it's uploading empty file. I am very new to perl. Please help me to find out the problem.
#!/usr/bin/perl
#script: upload.pl
use CGI qw/:standard/;
print header,
start_html('File upload');
print_form();
print_results() if... (2 Replies)
Thourgh Perl scripting, Is it possible to upload excel sheet to sharepoint portal ?
If the answer is YES.. Could you please share your thoughts and required CPAN modules or any examples to proceed further?
Regards,
Giridhar S
---------- Post updated at 04:26 AM ---------- Previous update... (0 Replies)
Hi
Please help me writing a shell script for multiupload.
result should look like:
$ ./multiupload.sh /tmp/file.avi
http://www.multiupload.com/P1R9BZ4X3Q
http://i.imgur.com/a2vhH.png
There seems to be no official API. (3 Replies)
Ok. I am using the Terminal window to ssh into a unix server. I am not sure how to copy a file from my mac onto the unix server. What command do I enter and how do I type the file I want to upload
Example. Say my file is named Test1.doc and it is on the usr/me/test/working/ directory and I want... (3 Replies)
Hi Folks,
I am not good in shell scripting. Please help me with my problem. Is it possible to block the file named "ss.cgi" using the port 25 to upload. (4 Replies)
I am trying to upload .zip files to Unix server and get the error 553 qmerev2002.zip: Permission denied, what is my problem?? I am able to load other files and folders fine. (3 Replies)