Are you using apache with mod_wsgi? And your mod_wsgi group is www-data? 
How about the mod_wsgi user, also www-data or some app specific user? 
Perhaps you could post the relevant parts of your apache vhost 
configuration?

Having root as file/directory owner is not permissive. That's 
restrictive... This means that only the root user would be able to 
read/write/execute them, not that they are being run as user root. In your 
case, you're giving quite a lot of power to the www-data group, that's the 
only reason this set up works at all. Otherwise apache would error out.

Regards

p.s.
Just one remark - you don't need to have executable rights on any web2py 
files that are run by apache. You need them on directories, but not on the 
files. So your default.py should really be rw-rw-r--. So only rw, never 
rwx. But that's not the cause of the problem.


On Sunday, March 4, 2012 8:14:27 PM UTC+1, Lewis wrote:
>
> Well, that might have been the problem so I changed permissions.  But, 
> I still get communication error. 
>
> I gave the group in which web2py runs (www-data) rwx permissions to 
> the module file in question.  Also, to the modules directory, the 
> specific application directory, and the web2py applications directory. 
>
> Still get communication error. 
>
> In general, what is the best advice for setting permissions?  I 
> suspect I've done this badly with potentially risky permissions.  As 
> of now I have: 
>
> folder web2py in /var, owner root, group www-data, perms = rwxrwxr-x 
> folder applications in web2py, ditto all 
> folder thisapp in applications, ditto all 
> folder modules, controllers, views in thisapp, ditto all 
> file default.py in controllers, owner root, group www-data, perms = rw- 
> rwxr-- 
>
> This all seems a bit too permissive.  For example, owner should not be 
> root.  Assuming I change owner to another user in sudousers, are the 
> rest of the permissions appropriate? 
>
> Thanks! 
>
>
>
>
> On Mar 4, 10:42 am, Marin Pranjić <[email protected]> wrote: 
> > Did you check permissions? 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Sun, Mar 4, 2012 at 7:37 PM, Lewis <[email protected]> wrote: 
> > > Anyone else?  Tried 3 different browsers and two machines.  Tried 
> > > restarting apache and web2py.  Still can't save.  Not fatal, but it is 
> > > nice to use the web editor for little changes. 
> > 
> > > Thanks. 
> > 
> > > BTW:  I am posting less not because I am working less, but because I 
> > > understand web2py better and everything is going very well.

Reply via email to