[plug] public_html file permissions/cmask

Onno Benschop onno at itmaze.com.au
Fri Oct 29 07:58:21 WST 2004


On Fri, 2004-10-29 at 05:54, Tim White wrote:
> Is there and easy way to make all files I created in public_html world 
> readable with out having the chmod them. Is there also any easy way to 
> make directorys world executable as well?
> I think it has something to do with masks but I'm not sure.

Uhm, not sure what you are asking here, but this will set all the files
in a directory (and all the directories below it) to world readable:

	chmod -R o+r *

If you just don't like typing chmod, you could change the owner of all
files, or the group of all files and set it to that of the web-server
process...

	chgrp -R www-data *

or

	chown -R www-data *

(Note that this is a Debian example :-)

Cheers,

Onno Benschop 

Connected via WestNet because I cannot see Optus B3 where I am :-(
-- 
()/)/)()        ..ASCII for Onno.. 
|>>?            ..EBCDIC for Onno.. 
--- -. -. ---   ..Morse for Onno.. 

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - onno at itmaze dot com dot au




More information about the plug mailing list