Commit fc7f1b1f authored by Till Brehm's avatar Till Brehm

Fixed: FS#3736 - Bind slave file directory has wrong permissions

parent d907c0ce
......@@ -621,7 +621,7 @@ class installer_dist extends installer_base {
//* Chown the slave subdirectory to $conf['bind']['bind_user']
exec('chown '.$conf['bind']['bind_user'].':'.$conf['bind']['bind_group'].' '.$content);
exec('chmod 770 '.$content);
exec('chmod 2770 '.$content);
}
......
......@@ -1230,11 +1230,12 @@ class installer_base {
//* Create the slave subdirectory
$content .= 'slave';
if(!@is_dir($content)) mkdir($content, 0770, true);
if(!@is_dir($content)) mkdir($content, 2770, true);
//* Chown the slave subdirectory to $conf['bind']['bind_user']
chown($content, $conf['bind']['bind_user']);
chgrp($content, $conf['bind']['bind_group']);
chmod($content, 2770);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment