A
A
alex_deerk2016-08-30 13:59:00
linux
alex_deerk, 2016-08-30 13:59:00

How to properly chmod the media directory in django?

According to this tutorial , I will deploy the project. Actually a question how it is correct to work with access rights? I tried to set the user in the gunicorn config instead of nobody, added him to the group, assigned the group rights to the media / project folder, set the rights to 666 and 776 (which is very bad, I understand), but as a result, either nothing changed or reading was forbidden.
I'm using CentOS 7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2016-08-30
@planc

in centos most likely selinux is enabled: https://serversforhackers.com/video/battling-selin...
either configure it or turn it off stupidly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question