Limit access for a couple of other files

This commit is contained in:
rperper
2018-11-07 16:00:00 -05:00
parent c08fa4220b
commit fd8d034d08

View File

@@ -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!")