From 9f642cab390681414bae072f9adf1f2b0b31d4b6 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 6 Mar 2020 12:10:05 +0500 Subject: [PATCH] bug fix: file manager permissions --- filemanager/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filemanager/views.py b/filemanager/views.py index 7735e2486..838759f91 100755 --- a/filemanager/views.py +++ b/filemanager/views.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- - - from django.shortcuts import render,redirect from loginSystem.models import Administrator from loginSystem.views import loadLoginPage @@ -52,6 +50,9 @@ def changePermissions(request): command = 'chown -R %s:%s /home/%s/public_html/*' % (externalApp, externalApp, domainName) ProcessUtilities.popenExecutioner(command) + command = 'chown -R %s:%s /home/%s/public_html/.[^.]*' % (externalApp, externalApp, domainName) + ProcessUtilities.popenExecutioner(command) + command = "chown root:nobody /home/" + domainName+"/logs" ProcessUtilities.popenExecutioner(command)