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?!
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
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.
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 ...