SELinux and web2py

69 views
Skip to first unread message

Mark Graves

unread,
Dec 10, 2015, 7:50:30 PM12/10/15
to web2py-users
Has anyone got any experience with selinux file permissions and web2py?

Somehow my sessions are not writing for the admin app but they are for the welcome app...

-Mark

Richard Vézina

unread,
Dec 10, 2015, 8:02:42 PM12/10/15
to web2py-users
Have you look to the welcome app user?

ls -al

Then 

chown -Rf same_welcome_app_user:same_welcome_app_user

Richard

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Vézina

unread,
Dec 10, 2015, 8:04:30 PM12/10/15
to web2py-users
with ubuntu the default owner for web server content is www-data

Richard

Mark Graves

unread,
Dec 10, 2015, 8:05:26 PM12/10/15
to web...@googlegroups.com
Its centos.  I'll check that now.  Its owned by apache

You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/SKPQ0DbCguE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Mark Graves

unread,
Dec 10, 2015, 8:07:34 PM12/10/15
to web...@googlegroups.com
Same permissions =(

Richard Vézina

unread,
Dec 10, 2015, 8:12:19 PM12/10/15
to web2py-users
Nop : 

ls -Z

Should provide extended attribute : -rw-r--r--  root root  system_u:object_r:etc_t  /etc/passwd

Sorry in french :

I check english one and there where not this example...

Then I don't know how you chage these exented attribute, there surely other exented command for that 

:D

Richard

Mark Graves

unread,
Dec 11, 2015, 5:53:11 PM12/11/15
to web...@googlegroups.com
Well I ended up rebooting to ubuntu and nginx behind selinux and it fixed itself =)
Reply all
Reply to author
Forward
0 new messages