tekati
2010-07-11 be3234e0b28a4157bcd2a4783644b2f9b9b068e7
Removed other group permissions o= from pam.d/smtp file in installer_base.lib.php file.
1 files modified
4 ■■■ changed files
install/lib/installer_base.lib.php 4 ●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -637,6 +637,8 @@
        //* configure pam for SMTP authentication agains the ispconfig database
        $configfile = 'pamd_smtp';
        if(is_file("$pam/smtp"))    copy("$pam/smtp", "$pam/smtp~");
        // On some OSes smtp is world readable which allows for reading database information.  Removing world readable rights should have no effect.
        if(is_file("$pam/smtp"))    exec("chmod o= $pam/smtp");
        if(is_file("$pam/smtp~"))   exec("chmod 400 $pam/smtp~");
        $content = rf("tpl/$configfile.master");
@@ -1638,4 +1640,4 @@
    }
}
?>
?>