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)