[UPHPU] recursively set directories and files different permissions
Wade Preston Shearer
lists at wadeshearer.com
Wed Jan 9 17:21:02 MST 2008
Is there a way to recursively set all directories permissions to one
thing and all files to another?
The reason that I ask is because I have a directory (and everything
within it) on a website where non-script files (images, style sheets,
PDFs, etc) are located and I want to ensure that a script file (PHP)
cannot be placed in there and executed.
I tried removing execution from everything but have discovered that I
then cannot cd into them. So, it appears that I need all of the
directories to have execution, but not the files. Don't files inherit
permissions from their parent directories though? So any new files
would get execution permissions and my work would be for naught? How
do people get around this?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080109/12dc77c5/smime.bin
More information about the UPHPU
mailing list