From a35a9fed3612482e0bd6931920fb730bae3a8195 Mon Sep 17 00:00:00 2001
From: sun_hai_10 <sunhai10@huawei.com>
Date: Thu, 9 Mar 2023 14:33:53 +0800
Subject: [PATCH] change permission with web.ss

---
 cobbler/cobblerd.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cobbler/cobblerd.py b/cobbler/cobblerd.py
index 34aedf9..9927160 100644
--- a/cobbler/cobblerd.py
+++ b/cobbler/cobblerd.py
@@ -60,6 +60,7 @@ def regen_ss_file():
     fd = os.open(ssfile, os.O_CREAT | os.O_RDWR, 0o660)
     os.write(fd, binascii.hexlify(data))
     os.close(fd)
+    os.chmod(ssfile, 0o660)
 
     http_user = "apache"
     family = utils.get_family()
-- 
2.23.0

