mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 16:56:09 +01:00
Limit access for a couple of other files
This commit is contained in:
@@ -841,7 +841,7 @@ class InstallCyberPanel:
|
|||||||
if os.path.exists(ftpdPath):
|
if os.path.exists(ftpdPath):
|
||||||
shutil.rmtree(ftpdPath)
|
shutil.rmtree(ftpdPath)
|
||||||
if mysql == 'Two':
|
if mysql == 'Two':
|
||||||
shutil.copytree("pure-ftpd",ftpdPath)
|
shutil.copytree("pure-ftpd", ftpdPath)
|
||||||
else:
|
else:
|
||||||
shutil.copytree("pure-ftpd-one", ftpdPath)
|
shutil.copytree("pure-ftpd-one", ftpdPath)
|
||||||
else:
|
else:
|
||||||
@@ -873,6 +873,9 @@ class InstallCyberPanel:
|
|||||||
os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
|
os.fchmod(writeDataToFile.fileno(), stat.S_IRUSR | stat.S_IWUSR)
|
||||||
writeDataToFile.close()
|
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!")
|
logging.InstallLog.writeToFile("PureFTPD configured!")
|
||||||
InstallCyberPanel.stdOut("PureFTPD configured!")
|
InstallCyberPanel.stdOut("PureFTPD configured!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user