PDA

View Full Version : chmod on htdocs 644?


AlleyCat
6-23-03, 01:23 AM
Real basic question -- but I've been messing around so much with cgi scripts I can't remember the original setup. Is htdocs typically going to be a chmod of 644?

thanks

AlleyCat

B&T
6-23-03, 01:52 AM
755

AlleyCat
6-23-03, 02:04 AM
B&T,

Thanks, but I guess that goes right to what is confusing me. I understood 755 (read, write, execute - read, execute - read, execute) to be what is used for cgi programs and related directories. But since those don't go in htdocs . . . what exactly is "executed" in htdocs, that requires execute permission?

Thanks

AlleyCat

B&T
6-23-03, 02:39 AM
In my case I have many php scripts there along with htm files. The question you asked was the standard setup.

AlleyCat
6-23-03, 06:32 AM
Ah so, I understand now.

thanks

AlleyCat

Sgeine
6-24-03, 02:12 AM
actually the execute on a directory is so you can change into that directory. Directories _always_ have x turned on.

AlleyCat
6-26-03, 12:57 PM
Thanks!

AlleyCat