Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-14-2002, 03:56 AM   PM User | #1
reubenb
Regular Coder

 
Join Date: Sep 2002
Location: Adelaide, Australia
Posts: 472
Thanks: 3
Thanked 0 Times in 0 Posts
reubenb is an unknown quantity at this point
cgi-bin not promptly

Hi there,
I made some cgi scripts, then I put them into a cgi-bin.
the scripts (.cgi) are permissions 755. i have two, one that gets info from a .txt and one that sends info from a form into that .txt.
now they both have the same permissiones (755) but only the one that gets from the .txt works? the one that gets from the form doesnt? whats gonna on 'ere?!

thanksy
reubenb is offline   Reply With Quote
Old 10-14-2002, 06:23 PM   PM User | #2
sir pannels
Regular Coder

 
Join Date: Jun 2002
Posts: 905
Thanks: 23
Thanked 5 Times in 5 Posts
sir pannels is an unknown quantity at this point
hey!
have you set the permissions on the txt file too?
you need to do that to 777 if your writing to it
if you have then chuck us more info on the error
ta
P
sir pannels is offline   Reply With Quote
Old 10-15-2002, 07:27 AM   PM User | #3
reubenb
Regular Coder

 
Join Date: Sep 2002
Location: Adelaide, Australia
Posts: 472
Thanks: 3
Thanked 0 Times in 0 Posts
reubenb is an unknown quantity at this point
lol

hehe, after 3 seconds from when i posted the thread i worked out i didnt set it to 777 i only did 775 woops!

thanks anyhow
reubenb is offline   Reply With Quote
Old 10-15-2002, 09:01 AM   PM User | #4
fivesidecube
New Coder

 
Join Date: Sep 2002
Location: Up North (UK)
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
fivesidecube is an unknown quantity at this point
sir pannels,

FYI:

If you are reading and writing to a text file you only need read and write permissions on the file (666). Sticking the execute flag onto the file is actually quite bad! Subverting PERL can be quite easy unless special measures are taken to prevent it and having an execute bit set on the txt file open another door.
fivesidecube is offline   Reply With Quote
Old 10-15-2002, 09:18 AM   PM User | #5
reubenb
Regular Coder

 
Join Date: Sep 2002
Location: Adelaide, Australia
Posts: 472
Thanks: 3
Thanked 0 Times in 0 Posts
reubenb is an unknown quantity at this point
yeha i guess i could do that.. thanks
Quote:
Originally posted by fivesidecube
sir pannels,
what does that mean? (the above)
reubenb is offline   Reply With Quote
Old 10-15-2002, 08:08 PM   PM User | #6
sir pannels
Regular Coder

 
Join Date: Jun 2002
Posts: 905
Thanks: 23
Thanked 5 Times in 5 Posts
sir pannels is an unknown quantity at this point
hey!,
yeh im aware of that.. but depending on your server permission settings you may have problems... unless your going for some kinda really important online system you dont need surcurity that much and if you where you`d have security anyhow..
tho just thought it would make life easier
but thanks for the input anyway man usefull info to those that dont know ...

oh sir pannels is a name.. my name

P
sir pannels is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:17 AM.


Advertisement
Log in to turn off these ads.