Python uWSGI-将chmod插座设置为666安全吗?

Python uWSGI-将chmod插座设置为666安全吗?,python,django,uwsgi,Python,Django,Uwsgi,我将Django与uWSGI一起使用,下面是我的Django.ini文件: # django.ini file [uwsgi] # master master = true touch-reload = /www/django.ini # maximum number of processes processes = 8 # the socket (use the full path to be safe) socket

我将Django与uWSGI一起使用,下面是我的Django.ini文件:

# django.ini file
[uwsgi]

# master
master                  = true
touch-reload =  /www/django.ini


# maximum number of processes
processes               = 8

# the socket (use the full path to be safe)
socket          = /tmp/uwsgi.sock


# with appropriate permissions - *may* be needed
chmod-socket    = 666

# the base directory
chdir           = /www/proj

# Django's wsgi file
wsgi-file          = /www/proj/proj/wsgi.py

# the virtualenv
home            = /home/me/.djenv

# clear environment on exit
vacuum          = true
我也有

# ls -al /tmp/uwsgi.sock
srw-rw-rw- 1 me me 0 Mar 13 03:07 /tmp/uwsgi.sock
其中
me
www-data
组的用户

我对
666
允许
chmod socket
感到不安,但是当我注释掉它,并通过
uwsgi--ini django.ini
重新初始化脚本时,我得到了
502坏网关


因此,想知道授予socket 666权限是否会造成安全问题,如果会,如何解决

umask=0660
有效吗?@dhke不知道你的意思。对不起,我的意思是
chmod socket=660
@dhke 660也会产生502错误。看来你不是第一个遇到这个问题的人:。您能否确保Web服务器与套接字在同一组中运行?