There's more than one way to do things | |
PerlMonks |
(jeffa) 2Re: Creating and writing a file to a password protected directoryby jeffa (Bishop) |
on Oct 12, 2002 at 18:55 UTC ( [id://204799]=note: print w/replies, xml ) | Need Help?? |
Good deal. I recommend that you remove the 777 permissions
from that directory and instead chown the
directory to what ever user the web server runs as. I
assume you are using Apache, correct? Use grep or egrep for
'User' on httpd.conf:
egrep ^User /path/to/conf/httpd.confto find out which user. Then you can chmod the directory to a safer 755. jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|