Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
be3234e0
Commit
be3234e0
authored
Jul 12, 2010
by
tekati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed other group permissions o= from pam.d/smtp file in installer_base.lib.php file.
parent
0d27f8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+3
-1
No files found.
install/lib/installer_base.lib.php
View file @
be3234e0
...
...
@@ -637,6 +637,8 @@ class installer_base {
//* 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 @@ class installer_base {
}
}
?>
\ No newline at end of file
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment