Attempt to write a readonly database - Django w/ SELinux error

后端 未结 8 1879
粉色の甜心
粉色の甜心 2020-12-07 18:32

I have a CentOS server on which I have Apache, Django, Django CMS and mod_wsgi. My Django project files are stored in the /srv directory and I have SELinux tur

8条回答
  •  被撕碎了的回忆
    2020-12-07 19:23

    You can change acls without touching the ownership and permissions of file/directory.

    Use the following commands:

    setfacl -m u:www-data:rwx /home/user/website
    setfacl -m u:www-data:rw /home/user/website/db.sqlite3
    

提交回复
热议问题