|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Permission Denied Error
When I try to open a file for writing I get a Permission Denied error. What's weird is that I can run the cgi file at the command line using SSH and the command "./filename.cgi", and it works ok and without error. In fact, a file handle is opened, written to, and saved in my cgi-bin directory (which I have verified). However, when I try to execute this script from my Web page as part of a form, I get the error. Could it be that my host's account forbids the action of opening/creating a file from the CGI?
And, this program works fine in my other host's account (which is where I developed it), so I don't know what might be different about my new host's account setup. Anyone know what might be going on? |
|
#2
|
|||
|
|||
|
you have to make sure your CGI scripts have executable permissions for everyone:
Code:
chmod 755 filename.cgi
__________________
- dsb - ![]() Perl Guy |
|
#3
|
|||
|
|||
|
Found out the CGI-BIN didn't have the correct permission. I had already chmod'd the file with 755. Anyway, host fixed the permissions and there is now joy in mudville. I assumed the CGI-BIN would already have the correct permissions for execution, otherwise why have a CGI-BIN in the first place?
I have had more problems with bad info from tech support people tha I care to discuss. It would be nice if these web hosting companies actually staffed their tech support desks with knowledgable people. Can't tell you how many times a simple item to diagnose (in retrospect) took weeks because only one person knew anything about Unix, Perl, etc. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Permission Denied Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|