From 5c8fd91cf9a66a1694200fe7bca98698654c4b72 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 4 Sep 2018 12:19:20 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=BD=95=E5=83=8F=E6=96=87=E4=BB=B6=EF=BC=8C=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 81069cea6..0b07bad70 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -355,6 +355,10 @@ AUTHENTICATION_BACKENDS = [ # Custom User Auth model AUTH_USER_MODEL = 'users.User' +# File Upload Permissions +FILE_UPLOAD_PERMISSIONS = 0o644 +FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o755 + # Auth LDAP settings AUTH_LDAP = CONFIG.AUTH_LDAP AUTH_LDAP_SERVER_URI = CONFIG.AUTH_LDAP_SERVER_URI