From fd8d034d08ca091aa8620b4536384051d4617dbb Mon Sep 17 00:00:00 2001 From: rperper Date: Wed, 7 Nov 2018 16:00:00 -0500 Subject: [PATCH] Limit access for a couple of other files --- install/installCyberPanel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 4d1e37dfe..91d2c5dc0 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -841,7 +841,7 @@ class InstallCyberPanel: if os.path.exists(ftpdPath): shutil.rmtree(ftpdPath) if mysql == 'Two': - shutil.copytree("pure-ftpd",ftpdPath) + shutil.copytree("pure-ftpd", ftpdPath) else: shutil.copytree("pure-ftpd-one", ftpdPath) else: @@ -873,6 +873,9 @@ class InstallCyberPanel: os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR) writeDataToFile.close() + os.lchmod(ftpdPath + '/pureftpd-ldap.conf', stat.S_IRUSR | stat.S_IWUSR) + os.lchmod(ftpdPath + '/pureftpd-pgsql.conf', stat.S_IRUSR | stat.S_IWUSR) + logging.InstallLog.writeToFile("PureFTPD configured!") InstallCyberPanel.stdOut("PureFTPD configured!")