From bf6a205edf986fb78c96526f848a303e80766fe2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 18 Nov 2014 18:33:51 +0100 Subject: [PATCH] Fix file permissions in the Windows wizard refs #7726 --- agent/windows-setup-agent/SetupWizard.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/windows-setup-agent/SetupWizard.cs b/agent/windows-setup-agent/SetupWizard.cs index 41770793a..43d7f9e79 100644 --- a/agent/windows-setup-agent/SetupWizard.cs +++ b/agent/windows-setup-agent/SetupWizard.cs @@ -238,7 +238,7 @@ namespace Icinga DirectoryInfo di = new DirectoryInfo(Icinga2InstallDir); DirectorySecurity ds = di.GetAccessControl(); FileSystemAccessRule rule = new FileSystemAccessRule("NT AUTHORITY\\NetworkService", - FileSystemRights.ReadAndExecute | FileSystemRights.Write | FileSystemRights.ListDirectory, + FileSystemRights.Modify, InheritanceFlags.ObjectInherit | InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow); ds.AddAccessRule(rule); di.SetAccessControl(ds); @@ -290,8 +290,8 @@ namespace Icinga Directory.CreateDirectory(installDir + "\\var\\cache\\icinga2"); Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\pki"); Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\agent\\inventory"); - Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\cluster\\config"); - Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\cluster\\log"); + Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\api\\config"); + Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\api\\log"); Directory.CreateDirectory(installDir + "\\var\\log\\icinga2\\compat\\archive"); Directory.CreateDirectory(installDir + "\\var\\run\\icinga2\\cmd"); Directory.CreateDirectory(installDir + "\\var\\spool\\icinga2\\perfdata");