Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 19th, 2001, 07:39 AM
tbonds tbonds is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 21 tbonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old July 19th, 2001, 11:36 AM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
you have to make sure your CGI scripts have executable permissions for everyone:

Code:
chmod 755 filename.cgi
__________________
- dsb -
Perl Guy

Reply With Quote
  #3  
Old July 19th, 2001, 11:55 AM
tbonds tbonds is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 21 tbonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Permission Denied Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT