We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d27f8b commit be3234eCopy full SHA for be3234e
install/lib/installer_base.lib.php
@@ -637,6 +637,8 @@ public function configure_pam() {
637
//* configure pam for SMTP authentication agains the ispconfig database
638
$configfile = 'pamd_smtp';
639
if(is_file("$pam/smtp")) copy("$pam/smtp", "$pam/smtp~");
640
+ // On some OSes smtp is world readable which allows for reading database information. Removing world readable rights should have no effect.
641
+ if(is_file("$pam/smtp")) exec("chmod o= $pam/smtp");
642
if(is_file("$pam/smtp~")) exec("chmod 400 $pam/smtp~");
643
644
$content = rf("tpl/$configfile.master");
@@ -1638,4 +1640,4 @@ protected function insert_db_credentials($tContents) {
1638
1640
}
1639
1641
1642
-?>
1643
+?>
0 commit comments