[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: <newbie> public_html directory requires chmod -R 755 constantly?



On Tue, Jan 02, 2001 at 02:52:41PM -0700, Stefan Harris wrote:
> Hello everyone!
> 
> I'm new here, so be gentle.
> 
> Whenever a change is made to anything in the public_html directory, I must 
> 
> chmod -R 755 public_html

<pedant>

you don't need to use 755 as the mode for everything, what you need
instead is:

chmod -R a+rX

which adds read permission to everything and execute permission only
to directories or files which already have at least one x bit.  there
is no need to make .html files executable. 

</pedant>

> before those files can be accessed from the web.  I am so new at this, but I am sure there is a way to make this directory 755 permanently, isn't there?  Does it have to do with ownership? (chown?)
> 

set your umask to 022 then files/directories are created world
readable by default.  

also please wrap your lines to 72 char.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpdW3I0xkN22.pgp
Description: PGP signature


Reply to: