On Wed, 2008-10-15 at 19:20 -0700, D. Woodman wrote:
> Hi Malcolm,
> 
> First off, thanks for taking the time to help out.
> 
> I had an inkling that it was a permission problem, so I decided to
> remove everything and start again. After creating a new user and
> creating the folders as that user (lets call the user "bob") I still
> get the same issue. I have uploaded all my files via FTP (logged in as
> the user "bob"). Could the fact that I am using FTP cause the problem?
> 
> Here is the result of the "ls -l settings.py":
> 
> -rw------- 1 bob bob 1804 Oct 15 22:08 settings.py
> 
> Now if I manually change the CHMOD to 775 it resolved the problem, but
> this doesn't explain why when the file is added it does not have the
> proper CHMOD does it?

That could be something to do with the FTP client or with the umask
setting on the server or possibly something else. I don't really know
and won't guess; I'll only be off-base.

> 
> How would I make the webserver's (Apache2) group be the owner of the
> file? Would I do something like:
> 
> usermod apache -g mygroup

Not even close. :-)

You're trying to modify the permission and ownership of a file, not
change the apache user. Typically the apache user will only belong to
the apache group (check this with "groups apache"). So you might do
something like

        chgrp apache settings.py
        chmod g+r settings.py
        
Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to